Skip to content

Commit 644bdfc

Browse files
authored
Merge pull request #49 from JoPkb/patch-1
Updating collections import in pyparsing.py
2 parents 1c79cdb + 4bf9667 commit 644bdfc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cbmpy/pyparsing.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ class names, and the use of '+', '|' and '^' operators.
7171
import warnings
7272
import re
7373
import sre_constants
74-
import collections
74+
if sys.version_info.major == 3 and sys.version_info.minor >= 10 :
75+
import collections.abc as collections
76+
else :
77+
import collections
7578
import pprint
7679
#~ sys.stderr.write( "testing pyparsing module, version %s, %s\n" % (__version__,__versionTime__ ) )
7780

0 commit comments

Comments
 (0)