We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a20e83a + a62a739 commit a48030cCopy full SHA for a48030c
1 file changed
Exscript/util/collections.py
@@ -6,7 +6,13 @@
6
from builtins import range
7
from builtins import object
8
import copy
9
-from collections import OrderedDict, Callable, defaultdict
+import sys
10
+if sys.version_info[1] >= 10:
11
+ from collections.abc import Callable
12
+ from collections import OrderedDict
13
+else:
14
+ from collections import OrderedDict, Callable
15
+
16
17
class OrderedDefaultDict(OrderedDict):
18
0 commit comments