diff --git a/mythril/disassembler/asm.py b/mythril/disassembler/asm.py index 69581c19..f0c388b8 100644 --- a/mythril/disassembler/asm.py +++ b/mythril/disassembler/asm.py @@ -2,7 +2,12 @@ code disassembly.""" import re -from collections.abc import Generator + +try: + from collections.abc import Generator +except ImportError: + from collections import Generator + from functools import lru_cache from mythril.ethereum import util