Try to use collections.abc.Mapping instead of collections.Mapping

The latter is deprecated and will be removed in Python 3.9, fixes #76
This commit is contained in:
Dave Halter
2019-06-21 10:17:05 +02:00
parent 59df3fab43
commit df3c494e02

View File

@@ -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, \