diff --git a/parso/python/tree.py b/parso/python/tree.py index baf2226..7d4a490 100644 --- a/parso/python/tree.py +++ b/parso/python/tree.py @@ -43,7 +43,10 @@ Parser Tree Classes """ import re -from collections import Mapping +try: + from collections.abc import Mapping +except ImportError: + from collections import Mapping from parso._compatibility import utf8_repr, unicode from parso.tree import Node, BaseNode, Leaf, ErrorNode, ErrorLeaf, \