mirror of
https://github.com/lgandx/Responder.git
synced 2025-07-16 10:02:53 -07:00
Fixing import issue like in /tools/odict.py
This commit is contained in:
parent
3a23ccdef8
commit
2c4cadbf7d
1 changed files with 4 additions and 5 deletions
|
@ -3,11 +3,10 @@ try:
|
|||
from UserDict import DictMixin
|
||||
except ImportError:
|
||||
from collections import UserDict
|
||||
# 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
|
||||
try:
|
||||
from collections import MutableMapping as DictMixin
|
||||
except ImportError:
|
||||
from collections.abc import MutableMapping as DictMixin
|
||||
|
||||
class OrderedDict(dict, DictMixin):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue