mirror of
https://github.com/lgandx/Responder.git
synced 2025-08-19 13:00:00 -07:00
Merge pull request #250 from ShutdownRepo/collections.abc
Upgrading `collections` import
This commit is contained in:
commit
6f0217feed
2 changed files with 8 additions and 2 deletions
|
@ -3,7 +3,10 @@ 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):
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,10 @@ 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