imports for 3.7+ again

This commit is contained in:
rocky
2019-12-29 01:28:05 -05:00
parent 566143b515
commit faf6ea9630
5 changed files with 3 additions and 0 deletions

View File

@@ -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

View File

@@ -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