summaryrefslogtreecommitdiff
path: root/compat.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2018-08-14 16:30:15 +0200
committerAnthon van der Neut <anthon@mnt.org>2018-08-14 16:30:15 +0200
commit0923c2a691f57f9e095f5c4b9a8f06fa78bb46d2 (patch)
treeba2dc411b705bc0290711a591480a66225634352 /compat.py
parent65d95151526615f21aa9fbecb92831e17da697bc (diff)
downloadruamel.yaml-0923c2a691f57f9e095f5c4b9a8f06fa78bb46d2.tar.gz
reimplement CommentedSeq to subclass MutableSequence instead of list
re issue #176
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 c2db2bb..80cb089 100644
--- a/compat.py
+++ b/compat.py
@@ -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]