diff --git a/test/bytecode_2.7/00_import.pyc b/test/bytecode_2.7/00_import.pyc index 62d8bd77..2ec0c16b 100644 Binary files a/test/bytecode_2.7/00_import.pyc and b/test/bytecode_2.7/00_import.pyc differ diff --git a/test/bytecode_3.7/00_import.pyc b/test/bytecode_3.7/00_import.pyc index a833913b..36d81c93 100644 Binary files a/test/bytecode_3.7/00_import.pyc and b/test/bytecode_3.7/00_import.pyc differ diff --git a/test/simple_source/stmts/00_import.py b/test/simple_source/stmts/00_import.py index 33cbb1a3..fd80daf6 100644 --- a/test/simple_source/stmts/00_import.py +++ b/test/simple_source/stmts/00_import.py @@ -7,3 +7,4 @@ import http.client as httpclient if len(__file__) == 0: # a.b.c should force consecutive LOAD_ATTRs import a.b.c as d + import stuff0.stuff1.stuff2.stuff3 as stuff3 diff --git a/uncompyle6/parsers/parse37.py b/uncompyle6/parsers/parse37.py index 73b92ace..cc11439a 100644 --- a/uncompyle6/parsers/parse37.py +++ b/uncompyle6/parsers/parse37.py @@ -73,8 +73,8 @@ class Python37Parser(Python36Parser): POP_TOP POP_TOP POP_TOP POP_EXCEPT POP_TOP POP_BLOCK else_suite COME_FROM_LOOP - # Is there a pattern here? attributes ::= IMPORT_FROM ROT_TWO POP_TOP IMPORT_FROM + attributes ::= attributes ROT_TWO POP_TOP IMPORT_FROM attribute37 ::= expr LOAD_METHOD expr ::= attribute37