summaryrefslogtreecommitdiff
path: root/compat.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2018-08-16 09:49:03 +0200
committerAnthon van der Neut <anthon@mnt.org>2018-08-16 09:49:03 +0200
commit81fdb659f35a533c29fc163ac679d0c6068385d9 (patch)
tree20a5e6c809cd8931483e6065da34a5c8db0fd8ac /compat.py
parent97ffa8425050d219b42a35e198302f8451f6e303 (diff)
downloadruamel.yaml-81fdb659f35a533c29fc163ac679d0c6068385d9.tar.gz
allow simple mappings as mapping keys
Diffstat (limited to 'compat.py')
-rw-r--r--compat.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/compat.py b/compat.py
index 5a39ca5..8b81975 100644
--- a/compat.py
+++ b/compat.py
@@ -92,7 +92,7 @@ if PY3:
BytesIO = io.BytesIO
# have unlimited precision
no_limit_int = int
- from collections.abc import Hashable, MutableSequence # NOQA
+ from collections.abc import Hashable, MutableSequence, MutableMapping, Mapping # NOQA
else:
string_types = basestring # NOQA
@@ -111,7 +111,7 @@ else:
BytesIO = cStringIO.StringIO
# have unlimited precision
no_limit_int = long # NOQA not available on Python 3
- from collections import Hashable, MutableSequence # NOQA
+ from collections import Hashable, MutableSequence, MutableMapping, Mapping # NOQA
if False: # MYPY
# StreamType = Union[BinaryIO, IO[str], IO[unicode], StringIO]