Skip to content

Commit cf8229e

Browse files
committed
Fix #1488915, Multiple dots in relative import statement raise SyntaxError.
1 parent c611f17 commit cf8229e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Grammar/Grammar

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ yield_stmt: yield_expr
6262
raise_stmt: 'raise' [test [',' test [',' test]]]
6363
import_stmt: import_name | import_from
6464
import_name: 'import' dotted_as_names
65-
import_from: ('from' ('.'* dotted_name | '.')
65+
import_from: ('from' ('.'* dotted_name | '.'+)
6666
'import' ('*' | '(' import_as_names ')' | import_as_names))
6767
import_as_name: NAME [('as' | NAME) NAME]
6868
dotted_as_name: dotted_name [('as' | NAME) NAME]

0 commit comments

Comments
 (0)