Fix #1488915, Multiple dots in relative import statement raise SyntaxError.

This commit is contained in:
Thomas Wouters 2006-05-25 11:25:51 +00:00
parent c611f17418
commit cf8229ea3b
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ yield_stmt: yield_expr
raise_stmt: 'raise' [test [',' test [',' test]]]
import_stmt: import_name | import_from
import_name: 'import' dotted_as_names
import_from: ('from' ('.'* dotted_name | '.')
import_from: ('from' ('.'* dotted_name | '.'+)
'import' ('*' | '(' import_as_names ')' | import_as_names))
import_as_name: NAME [('as' | NAME) NAME]
dotted_as_name: dotted_name [('as' | NAME) NAME]