mirror of
https://github.com/lgandx/Responder.git
synced 2025-07-16 10:02:53 -07:00
Upgrading collections import
This commit is contained in:
parent
de20dcf408
commit
3a23ccdef8
1 changed files with 5 additions and 1 deletions
|
@ -3,7 +3,11 @@ 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
|
# https://stackoverflow.com/questions/70870041/cannot-import-name-mutablemapping-from-collections
|
||||||
|
if sys.version_info[:2] >= (3, 8):
|
||||||
|
from collections.abc import MutableMapping
|
||||||
|
else:
|
||||||
|
from collections import MutableMapping
|
||||||
|
|
||||||
class OrderedDict(dict, DictMixin):
|
class OrderedDict(dict, DictMixin):
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue