diff options
author | Anthon van der Neut <anthon@mnt.org> | 2018-08-14 16:30:15 +0200 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2018-08-14 16:30:15 +0200 |
commit | 0923c2a691f57f9e095f5c4b9a8f06fa78bb46d2 (patch) | |
tree | ba2dc411b705bc0290711a591480a66225634352 /compat.py | |
parent | 65d95151526615f21aa9fbecb92831e17da697bc (diff) | |
download | ruamel.yaml-0923c2a691f57f9e095f5c4b9a8f06fa78bb46d2.tar.gz |
reimplement CommentedSeq to subclass MutableSequence instead of list
re issue #176
Diffstat (limited to 'compat.py')
-rw-r--r-- | compat.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -91,7 +91,7 @@ if PY3: BytesIO = io.BytesIO # have unlimited precision no_limit_int = int - from collections.abc import Hashable # NOQA + from collections.abc import Hashable, MutableSequence # NOQA else: string_types = basestring # NOQA @@ -110,7 +110,7 @@ else: BytesIO = cStringIO.StringIO # have unlimited precision no_limit_int = long # NOQA not available on Python 3 - from collections import Hashable # NOQA + from collections import Hashable, MutableSequence # NOQA if False: # MYPY # StreamType = Union[BinaryIO, IO[str], IO[unicode], StringIO] |