From: Thomas A Caswell Date: Wed, 30 Oct 2019 23:50:38 +0000 (-0400) Subject: MNT: do not import ABC directly from collections X-Git-Tag: v2.0.0rc1~346^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62d3d41382d919af4662c12876f3de6ca854fd54;p=thirdparty%2Fdnspython.git MNT: do not import ABC directly from collections --- diff --git a/dns/namedict.py b/dns/namedict.py index f44cf6f9..0e1103f7 100644 --- a/dns/namedict.py +++ b/dns/namedict.py @@ -27,11 +27,14 @@ """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