diff options
author | Jakub Stasiak <jakub@stasiak.at> | 2017-10-05 07:10:09 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2017-10-05 07:10:09 (GMT) |
commit | af810b35b494ef1d255d4bf340b92a9dad446995 (patch) | |
tree | 78df02ecf9d934a174aa2ad1202d583b29faeba7 /Lib/lib2to3/fixes/fix_xrange.py | |
parent | a8ed11742b4c2115597977ce04fa8e043d9e0792 (diff) | |
download | cpython-af810b35b494ef1d255d4bf340b92a9dad446995.zip cpython-af810b35b494ef1d255d4bf340b92a9dad446995.tar.gz cpython-af810b35b494ef1d255d4bf340b92a9dad446995.tar.bz2 |
closes bpo-27494: Fix 2to3 handling of trailing comma after a generator expression (#3771)
Diffstat (limited to 'Lib/lib2to3/fixes/fix_xrange.py')
-rw-r--r-- | Lib/lib2to3/fixes/fix_xrange.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/lib2to3/fixes/fix_xrange.py b/Lib/lib2to3/fixes/fix_xrange.py index 1e491e1..f5f06f3 100644 --- a/Lib/lib2to3/fixes/fix_xrange.py +++ b/Lib/lib2to3/fixes/fix_xrange.py @@ -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) |