diff options
author | Anthon van der Neut <anthon@mnt.org> | 2018-07-28 23:53:41 +0200 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2018-07-28 23:53:41 +0200 |
commit | f9b50b606fe3f12b09dd36cb999238bf440d0cd1 (patch) | |
tree | 04a14e70240d7677ac84d95cd38f3cded4729091 /comments.py | |
parent | 9f9266b31445296439cbcc9c0e3f01b4fb15ed8a (diff) | |
download | ruamel.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 'comments.py')
-rw-r--r-- | comments.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/comments.py b/comments.py index afbcbf0..98c80c7 100644 --- a/comments.py +++ b/comments.py @@ -11,11 +11,15 @@ a separate base import sys import copy -from collections import MutableSet, Sized, Set from ruamel.yaml.compat import ordereddict, PY2, string_types from ruamel.yaml.scalarstring import ScalarString +if PY2: + from collections import MutableSet, Sized, Set +else: + from collections.abc import MutableSet, Sized, Set + if False: # MYPY from typing import Any, Dict, Optional, List, Union # NOQA |