mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
closes bpo-27494: Fix 2to3 handling of trailing comma after a generator expression (#3771)
This commit is contained in:
parent
a8ed11742b
commit
af810b35b4
7 changed files with 38 additions and 10 deletions
|
@ -55,7 +55,7 @@ class FixXrange(fixer_base.BaseFix):
|
|||
p1 = patcomp.compile_pattern(P1)
|
||||
|
||||
P2 = """for_stmt< 'for' any 'in' node=any ':' any* >
|
||||
| comp_for< 'for' any 'in' node=any any* >
|
||||
| old_comp_for< 'for' any 'in' node=any any* >
|
||||
| comparison< any 'in' node=any any*>
|
||||
"""
|
||||
p2 = patcomp.compile_pattern(P2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue