comp_for is now called sync_comp_for for all Python versions to be compatible with the Python 3.8 Grammar

This commit is contained in:
Dave Halter
2019-06-09 18:00:32 +02:00
parent a7aa23a7f0
commit b5d50392a4
11 changed files with 45 additions and 45 deletions

View File

@@ -140,7 +140,8 @@ argument: ( test [comp_for] |
'*' test )
comp_iter: comp_for | comp_if
comp_for: ['async'] 'for' exprlist 'in' or_test [comp_iter]
sync_comp_for: 'for' exprlist 'in' or_test [comp_iter]
comp_for: ['async'] sync_comp_for
comp_if: 'if' test_nocond [comp_iter]
# not used in grammar, but may appear in "node" passed from Parser to Compiler