diff --git a/test/bytecode_3.5_run/04_importlist.pyc b/test/bytecode_3.5_run/04_importlist.pyc index f00b0335..6d739fe7 100644 Binary files a/test/bytecode_3.5_run/04_importlist.pyc and b/test/bytecode_3.5_run/04_importlist.pyc differ diff --git a/test/bytecode_3.6_run/04_importlist.pyc b/test/bytecode_3.6_run/04_importlist.pyc index 4f035bd2..6e5471a0 100644 Binary files a/test/bytecode_3.6_run/04_importlist.pyc and b/test/bytecode_3.6_run/04_importlist.pyc differ diff --git a/test/bytecode_3.8_run/04_importlist.pyc b/test/bytecode_3.8_run/04_importlist.pyc index bbb514a8..40341054 100644 Binary files a/test/bytecode_3.8_run/04_importlist.pyc and b/test/bytecode_3.8_run/04_importlist.pyc differ diff --git a/test/simple_source/bug35/04_importlist.py b/test/simple_source/bug35/04_importlist.py index e941f5bf..288aebde 100644 --- a/test/simple_source/bug35/04_importlist.py +++ b/test/simple_source/bug35/04_importlist.py @@ -7,8 +7,10 @@ import os.path as osp from sys import path from os import sep, name +import collections.abc assert osp.basename("a") assert path assert sep assert name +assert collections.abc diff --git a/uncompyle6/parsers/parse37.py b/uncompyle6/parsers/parse37.py index 057bf8bb..8f8682d2 100644 --- a/uncompyle6/parsers/parse37.py +++ b/uncompyle6/parsers/parse37.py @@ -600,6 +600,7 @@ class Python37Parser(Python37BaseParser): import37 ::= import POP_TOP alias ::= IMPORT_NAME_ATTR IMPORT_FROM store alias ::= IMPORT_NAME_ATTR attributes store + alias ::= IMPORT_NAME_ATTR store import_from ::= LOAD_CONST LOAD_CONST IMPORT_NAME_ATTR importlist POP_TOP async_for_stmt ::= setup_loop expr