Skip to content

Commit

Permalink
Replace dict() with {}
Browse files Browse the repository at this point in the history
  • Loading branch information
hramezani committed Jul 22, 2021
1 parent 45baada commit 23b7648
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/urllib3/_collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ class HTTPHeaderDict(MutableMapping[str, str]):

def __init__(self, headers: Optional[ValidHTTPHeaderSource] = None, **kwargs: str):
super().__init__()
self._container = dict() # 'dict' is insert-ordered in Python 3.7+
self._container = {} # 'dict' is insert-ordered in Python 3.7+
if headers is not None:
if isinstance(headers, HTTPHeaderDict):
self._copy_from(headers)
Expand Down

0 comments on commit 23b7648

Please sign in to comment.