diff options
author | Anthon van der Neut <anthon@mnt.org> | 2018-08-16 09:49:03 +0200 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2018-08-16 09:49:03 +0200 |
commit | 81fdb659f35a533c29fc163ac679d0c6068385d9 (patch) | |
tree | 20a5e6c809cd8931483e6065da34a5c8db0fd8ac /compat.py | |
parent | 97ffa8425050d219b42a35e198302f8451f6e303 (diff) | |
download | ruamel.yaml-81fdb659f35a533c29fc163ac679d0c6068385d9.tar.gz |
allow simple mappings as mapping keys
Diffstat (limited to 'compat.py')
-rw-r--r-- | compat.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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] |