diff options
author | Raymond Hettinger <raymond.hettinger@gmail.com> | 2018-02-04 20:15:31 -0800 |
---|---|---|
committer | Nate Prewitt <Nate.Prewitt@gmail.com> | 2018-05-18 07:06:22 -0700 |
commit | cc223f5b6e6b7d04cdc765873dee556f6d87fa6b (patch) | |
tree | b396e587e4bbafde6a49271eeaf1b89dcb855f1d /requests/structures.py | |
parent | fe8290b3d0ca21dd8ae5471a59a8bf13d3dcb31e (diff) | |
download | python-requests-3.7_collections.tar.gz |
Separate collections from collections.abc3.7_collections
Diffstat (limited to 'requests/structures.py')
-rw-r--r-- | requests/structures.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/requests/structures.py b/requests/structures.py index 05d2b3f5..da930e28 100644 --- a/requests/structures.py +++ b/requests/structures.py @@ -7,16 +7,14 @@ requests.structures Data structures that power Requests. """ -import collections +from .compat import OrderedDict, Mapping, MutableMapping -from .compat import OrderedDict - -class CaseInsensitiveDict(collections.MutableMapping): +class CaseInsensitiveDict(MutableMapping): """A case-insensitive ``dict``-like object. Implements all methods and operations of - ``collections.MutableMapping`` as well as dict's ``copy``. Also + ``MutableMapping`` as well as dict's ``copy``. Also provides ``lower_items``. All keys are expected to be strings. The structure remembers the @@ -71,7 +69,7 @@ class CaseInsensitiveDict(collections.MutableMapping): ) def __eq__(self, other): - if isinstance(other, collections.Mapping): + if isinstance(other, Mapping): other = CaseInsensitiveDict(other) else: return NotImplemented |