Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/bap/adt.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,10 @@ def count_authors(library):

"""

from collections import Iterable,Sequence,Mapping
try:
from collections.abc import Iterable,Sequence,Mapping
except ImportError:
from collections import Iterable,Sequence,Mapping

class ADT(object):
"""Algebraic Data Type.
Expand Down
5 changes: 4 additions & 1 deletion src/bap/bir.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

"""BIR - BAP Intermediate Representation"""

from collections import Sequence,Mapping
try:
from collections.abc import Sequence,Mapping
except ImportError:
from collections import Sequence,Mapping
from .adt import *
from .bil import *
from . import noeval_parser
Expand Down