Merge pull request #51 from tomhenderson/fix-collections-import
Fix collections import (needed for Python 3.10)
This commit is contained in:
commit
926ee3b86d
1 file changed
+2
-1
@@ -39,7 +39,8 @@ import collections
|
||||
try:
|
||||
collectionsCallable = collections.Callable
|
||||
except AttributeError:
|
||||
collectionsCallable = collections
|
||||
import collections.abc
|
||||
collectionsCallable = collections.abc.Callable
|
||||
|
||||
try:
|
||||
set
|
||||
|
||||
Reference in new issue
Block a user