We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f9b5d7f + a0dea53 commit 0382823Copy full SHA for 0382823
src/bap/adt.py
@@ -182,7 +182,10 @@ def count_authors(library):
182
183
"""
184
185
-from collections import Iterable,Sequence,Mapping
+try:
186
+ from collections.abc import Iterable,Sequence,Mapping
187
+except ImportError:
188
+ from collections import Iterable,Sequence,Mapping
189
190
class ADT(object):
191
"""Algebraic Data Type.
src/bap/bir.py
@@ -2,7 +2,10 @@
2
3
"""BIR - BAP Intermediate Representation"""
4
5
-from collections import Sequence,Mapping
6
+ from collections.abc import Sequence,Mapping
7
8
+ from collections import Sequence,Mapping
9
from .adt import *
10
from .bil import *
11
from . import noeval_parser
0 commit comments