Mercurial > python-compiler.rs
diff src/python_ast.rs @ 48:039f85b187f2
Also handle relative imports.
author | Bastien Orivel <eijebong@bananium.fr> |
---|---|
date | Tue, 07 Jun 2016 13:34:12 +0200 |
parents | 38f59b0efc2c |
children | 141f1769e1f0 |
line wrap: on
line diff
--- a/src/python_ast.rs +++ b/src/python_ast.rs @@ -58,7 +58,7 @@ pub enum stmt { Import(Vec<alias>), // ImportFrom(identifier? module, alias* names, int? level) - ImportFrom(String, Vec<alias>, Option<i32>), // TODO: check the size of level. + ImportFrom(String, Vec<alias>, Option<i32>), // Global(identifier* names) Global(Vec<String>),