summaryrefslogtreecommitdiff
path: root/requests/structures.py
diff options
context:
space:
mode:
Diffstat (limited to 'requests/structures.py')
-rw-r--r--requests/structures.py10
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