mirror of
https://github.com/lgandx/Responder.git
synced 2025-07-05 20:41:22 -07:00
MutableMapping was moved to collections.abc
This commit is contained in:
parent
39a2c7c0f2
commit
b9f3ae35ee
1 changed files with 6 additions and 3 deletions
9
odict.py
9
odict.py
|
@ -1,9 +1,12 @@
|
||||||
import sys
|
import sys
|
||||||
try:
|
try:
|
||||||
from UserDict import DictMixin
|
from UserDict import DictMixin
|
||||||
except ImportError:
|
except ImportError:
|
||||||
from collections import UserDict
|
from collections import UserDict
|
||||||
from collections import MutableMapping as DictMixin
|
try:
|
||||||
|
from collections import MutableMapping as DictMixin
|
||||||
|
except ImportError:
|
||||||
|
from collections.abc import MutableMapping as DictMixin
|
||||||
|
|
||||||
class OrderedDict(dict, DictMixin):
|
class OrderedDict(dict, DictMixin):
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue