diff options
Diffstat (limited to 'Lib/lib2to3/fixes')
-rw-r--r-- | Lib/lib2to3/fixes/fix_dict.py | 2 | ||||
-rw-r--r-- | Lib/lib2to3/fixes/fix_paren.py | 4 | ||||
-rw-r--r-- | Lib/lib2to3/fixes/fix_xrange.py | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/Lib/lib2to3/fixes/fix_dict.py b/Lib/lib2to3/fixes/fix_dict.py index 55be553..d3655c9 100644 --- a/Lib/lib2to3/fixes/fix_dict.py +++ b/Lib/lib2to3/fixes/fix_dict.py @@ -83,7 +83,7 @@ class FixDict(fixer_base.BaseFix): p1 = patcomp.compile_pattern(P1) P2 = """for_stmt< 'for' any 'in' node=any ':' any* > - | old_comp_for< 'for' any 'in' node=any any* > + | comp_for< 'for' any 'in' node=any any* > """ p2 = patcomp.compile_pattern(P2) diff --git a/Lib/lib2to3/fixes/fix_paren.py b/Lib/lib2to3/fixes/fix_paren.py index de49eef..b205aa7 100644 --- a/Lib/lib2to3/fixes/fix_paren.py +++ b/Lib/lib2to3/fixes/fix_paren.py @@ -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)+ [','] > diff --git a/Lib/lib2to3/fixes/fix_xrange.py b/Lib/lib2to3/fixes/fix_xrange.py index f5f06f3..1e491e1 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* > - | old_comp_for< 'for' any 'in' node=any any* > + | comp_for< 'for' any 'in' node=any any* > | comparison< any 'in' node=any any*> """ p2 = patcomp.compile_pattern(P2) |