Fix #1488915, Multiple dots in relative import statement raise SyntaxError.
This commit is contained in:
parent
c611f17418
commit
cf8229ea3b
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue