summaryrefslogtreecommitdiff
path: root/compat.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2018-07-28 23:53:41 +0200
committerAnthon van der Neut <anthon@mnt.org>2018-07-28 23:53:41 +0200
commitf9b50b606fe3f12b09dd36cb999238bf440d0cd1 (patch)
tree04a14e70240d7677ac84d95cd38f3cded4729091 /compat.py
parent9f9266b31445296439cbcc9c0e3f01b4fb15ed8a (diff)
downloadruamel.yaml-f9b50b606fe3f12b09dd36cb999238bf440d0cd1.tar.gz
Resolving issue #210 deprecation warning in python 3.7
*When this change indeed resolves your problem, please **Close** this issue*. *(You can do so usingthe WorkFlow pull-down (close to the top right of this page)*
Diffstat (limited to 'compat.py')
-rw-r--r--compat.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/compat.py b/compat.py
index 022762b..e7ad8db 100644
--- a/compat.py
+++ b/compat.py
@@ -83,6 +83,7 @@ if PY3:
BytesIO = io.BytesIO
# have unlimited precision
no_limit_int = int
+ from collections.abc import Hashable # NOQA
else:
string_types = basestring # NOQA
@@ -99,6 +100,7 @@ else:
BytesIO = cStringIO.StringIO
# have unlimited precision
no_limit_int = long # NOQA not available on Python 3
+ from collections import Hashable # NOQA
if False: # MYPY
# StreamType = Union[BinaryIO, IO[str], IO[unicode], StringIO]