From 62d3d41382d919af4662c12876f3de6ca854fd54 Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Wed, 30 Oct 2019 19:50:38 -0400 Subject: [PATCH] MNT: do not import ABC directly from collections --- dns/namedict.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 -- 2.47.3