update windows build to Python 3.7
This commit is contained in:
parent
73105fa71e
commit
ddc59ab92d
5761 changed files with 750298 additions and 213405 deletions
0
Lib/lib2to3/tests/data/fixers/myfixes/__init__.py
Normal file
0
Lib/lib2to3/tests/data/fixers/myfixes/__init__.py
Normal file
6
Lib/lib2to3/tests/data/fixers/myfixes/fix_explicit.py
Normal file
6
Lib/lib2to3/tests/data/fixers/myfixes/fix_explicit.py
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
from lib2to3.fixer_base import BaseFix
|
||||
|
||||
class FixExplicit(BaseFix):
|
||||
explicit = True
|
||||
|
||||
def match(self): return False
|
||||
6
Lib/lib2to3/tests/data/fixers/myfixes/fix_first.py
Normal file
6
Lib/lib2to3/tests/data/fixers/myfixes/fix_first.py
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
from lib2to3.fixer_base import BaseFix
|
||||
|
||||
class FixFirst(BaseFix):
|
||||
run_order = 1
|
||||
|
||||
def match(self, node): return False
|
||||
7
Lib/lib2to3/tests/data/fixers/myfixes/fix_last.py
Normal file
7
Lib/lib2to3/tests/data/fixers/myfixes/fix_last.py
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
from lib2to3.fixer_base import BaseFix
|
||||
|
||||
class FixLast(BaseFix):
|
||||
|
||||
run_order = 10
|
||||
|
||||
def match(self, node): return False
|
||||
13
Lib/lib2to3/tests/data/fixers/myfixes/fix_parrot.py
Normal file
13
Lib/lib2to3/tests/data/fixers/myfixes/fix_parrot.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
from lib2to3.fixer_base import BaseFix
|
||||
from lib2to3.fixer_util import Name
|
||||
|
||||
class FixParrot(BaseFix):
|
||||
"""
|
||||
Change functions named 'parrot' to 'cheese'.
|
||||
"""
|
||||
|
||||
PATTERN = """funcdef < 'def' name='parrot' any* >"""
|
||||
|
||||
def transform(self, node, results):
|
||||
name = results["name"]
|
||||
name.replace(Name("cheese", name.prefix))
|
||||
6
Lib/lib2to3/tests/data/fixers/myfixes/fix_preorder.py
Normal file
6
Lib/lib2to3/tests/data/fixers/myfixes/fix_preorder.py
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
from lib2to3.fixer_base import BaseFix
|
||||
|
||||
class FixPreorder(BaseFix):
|
||||
order = "pre"
|
||||
|
||||
def match(self, node): return False
|
||||
Loading…
Add table
Add a link
Reference in a new issue