forked from Rust-related/RustPython
This expands import parsing and handling to implement a variety of import cases: * `import x as y` * `import x, y` * `from x import y` * `from x import y, z` * `from x import y as z, a as b` This fixes #51.
11 lines
146 B
Python
11 lines
146 B
Python
# This is used by import.py; the two should be modified in concert
|
|
|
|
X = '123'
|
|
Y = 'abc'
|
|
|
|
def func():
|
|
return X
|
|
|
|
def other_func():
|
|
return Y
|