From ac2811701a6cadd55abbd5259eb6d56d5d2c0c0d Mon Sep 17 00:00:00 2001 From: Nikhil Parasaram Date: Sun, 7 Aug 2022 05:33:42 +0100 Subject: [PATCH] Fix imports for python 3.10 (#1661) * Fix issues with arbitrary jump dest * Support abi * Add partial abi support * Fix test * Fix test directory * Fix OOG issue * Fix issue with simplify * Fix typo * Fix import * Refactor --- mythril/disassembler/asm.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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