]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
MNT: do not import ABC directly from collections
authorThomas A Caswell <tcaswell@bnl.gov>
Wed, 30 Oct 2019 23:50:38 +0000 (19:50 -0400)
committerThomas A Caswell <tcaswell@bnl.gov>
Wed, 30 Oct 2019 23:50:38 +0000 (19:50 -0400)
dns/namedict.py

index f44cf6f9752934fe71fa710bfa56afcfa2aed585..0e1103f7964a6f4861f9fe8a6c8d38fbd42747f4 100644 (file)
 
 """DNS name dictionary"""
 
-import collections
+try:
+    from collections.abc import MutableMapping
+except ImportError:
+    from collections import MutableMapping
 import dns.name
 
 
-class NameDict(collections.MutableMapping):
+class NameDict(MutableMapping):
     """A dictionary whose keys are dns.name.Name objects.
 
     In addition to being like a regular Python dictionary, this