We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f67310c commit 39c33dfCopy full SHA for 39c33df
Grammar/python.gram
@@ -225,8 +225,7 @@ import_stmt[stmt_ty](memo):
225
# -----------------
226
227
import_name[stmt_ty]:
228
- | 'import' a=dotted_as_names { _PyAST_Import(a, 0, EXTRA) }
229
- | "lazy" 'import' a=dotted_as_names { _PyAST_Import(a, 1, EXTRA) }
+ | lazy="lazy"? 'import' a=dotted_as_names { _PyAST_Import(a, lazy ? 1 : 0, EXTRA) }
230
231
# note below: the ('.' | '...') is necessary because '...' is tokenized as ELLIPSIS
232
import_from[stmt_ty]:
0 commit comments