mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Revert "closes bpo-27494: Fix 2to3 handling of trailing comma after a generator expression (GH-3771)" (#8241)
This reverts commit af810b35b4
.
This is not valid syntax (see bpo-32012).
This commit is contained in:
parent
ac20e0f98d
commit
4b8a7f51da
7 changed files with 12 additions and 36 deletions
|
@ -15,7 +15,7 @@ class FixParen(fixer_base.BaseFix):
|
|||
PATTERN = """
|
||||
atom< ('[' | '(')
|
||||
(listmaker< any
|
||||
old_comp_for<
|
||||
comp_for<
|
||||
'for' NAME 'in'
|
||||
target=testlist_safe< any (',' any)+ [',']
|
||||
>
|
||||
|
@ -24,7 +24,7 @@ class FixParen(fixer_base.BaseFix):
|
|||
>
|
||||
|
|
||||
testlist_gexp< any
|
||||
old_comp_for<
|
||||
comp_for<
|
||||
'for' NAME 'in'
|
||||
target=testlist_safe< any (',' any)+ [',']
|
||||
>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue