comment here
This commit is contained in:
BIN
.CondaPkg/env/lib/python3.11/lib2to3/tests/data/fixers/__pycache__/bad_order.cpython-311.pyc
vendored
Normal file
BIN
.CondaPkg/env/lib/python3.11/lib2to3/tests/data/fixers/__pycache__/bad_order.cpython-311.pyc
vendored
Normal file
Binary file not shown.
BIN
.CondaPkg/env/lib/python3.11/lib2to3/tests/data/fixers/__pycache__/no_fixer_cls.cpython-311.pyc
vendored
Normal file
BIN
.CondaPkg/env/lib/python3.11/lib2to3/tests/data/fixers/__pycache__/no_fixer_cls.cpython-311.pyc
vendored
Normal file
Binary file not shown.
BIN
.CondaPkg/env/lib/python3.11/lib2to3/tests/data/fixers/__pycache__/parrot_example.cpython-311.pyc
vendored
Normal file
BIN
.CondaPkg/env/lib/python3.11/lib2to3/tests/data/fixers/__pycache__/parrot_example.cpython-311.pyc
vendored
Normal file
Binary file not shown.
5
.CondaPkg/env/lib/python3.11/lib2to3/tests/data/fixers/bad_order.py
vendored
Normal file
5
.CondaPkg/env/lib/python3.11/lib2to3/tests/data/fixers/bad_order.py
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
from lib2to3.fixer_base import BaseFix
|
||||
|
||||
class FixBadOrder(BaseFix):
|
||||
|
||||
order = "crazy"
|
||||
0
.CondaPkg/env/lib/python3.11/lib2to3/tests/data/fixers/myfixes/__init__.py
vendored
Normal file
0
.CondaPkg/env/lib/python3.11/lib2to3/tests/data/fixers/myfixes/__init__.py
vendored
Normal file
BIN
.CondaPkg/env/lib/python3.11/lib2to3/tests/data/fixers/myfixes/__pycache__/__init__.cpython-311.pyc
vendored
Normal file
BIN
.CondaPkg/env/lib/python3.11/lib2to3/tests/data/fixers/myfixes/__pycache__/__init__.cpython-311.pyc
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.CondaPkg/env/lib/python3.11/lib2to3/tests/data/fixers/myfixes/__pycache__/fix_first.cpython-311.pyc
vendored
Normal file
BIN
.CondaPkg/env/lib/python3.11/lib2to3/tests/data/fixers/myfixes/__pycache__/fix_first.cpython-311.pyc
vendored
Normal file
Binary file not shown.
BIN
.CondaPkg/env/lib/python3.11/lib2to3/tests/data/fixers/myfixes/__pycache__/fix_last.cpython-311.pyc
vendored
Normal file
BIN
.CondaPkg/env/lib/python3.11/lib2to3/tests/data/fixers/myfixes/__pycache__/fix_last.cpython-311.pyc
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
6
.CondaPkg/env/lib/python3.11/lib2to3/tests/data/fixers/myfixes/fix_explicit.py
vendored
Normal file
6
.CondaPkg/env/lib/python3.11/lib2to3/tests/data/fixers/myfixes/fix_explicit.py
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
from lib2to3.fixer_base import BaseFix
|
||||
|
||||
class FixExplicit(BaseFix):
|
||||
explicit = True
|
||||
|
||||
def match(self): return False
|
||||
6
.CondaPkg/env/lib/python3.11/lib2to3/tests/data/fixers/myfixes/fix_first.py
vendored
Normal file
6
.CondaPkg/env/lib/python3.11/lib2to3/tests/data/fixers/myfixes/fix_first.py
vendored
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
.CondaPkg/env/lib/python3.11/lib2to3/tests/data/fixers/myfixes/fix_last.py
vendored
Normal file
7
.CondaPkg/env/lib/python3.11/lib2to3/tests/data/fixers/myfixes/fix_last.py
vendored
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
.CondaPkg/env/lib/python3.11/lib2to3/tests/data/fixers/myfixes/fix_parrot.py
vendored
Normal file
13
.CondaPkg/env/lib/python3.11/lib2to3/tests/data/fixers/myfixes/fix_parrot.py
vendored
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
.CondaPkg/env/lib/python3.11/lib2to3/tests/data/fixers/myfixes/fix_preorder.py
vendored
Normal file
6
.CondaPkg/env/lib/python3.11/lib2to3/tests/data/fixers/myfixes/fix_preorder.py
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
from lib2to3.fixer_base import BaseFix
|
||||
|
||||
class FixPreorder(BaseFix):
|
||||
order = "pre"
|
||||
|
||||
def match(self, node): return False
|
||||
1
.CondaPkg/env/lib/python3.11/lib2to3/tests/data/fixers/no_fixer_cls.py
vendored
Normal file
1
.CondaPkg/env/lib/python3.11/lib2to3/tests/data/fixers/no_fixer_cls.py
vendored
Normal file
@@ -0,0 +1 @@
|
||||
# This is empty so trying to fetch the fixer class gives an AttributeError
|
||||
2
.CondaPkg/env/lib/python3.11/lib2to3/tests/data/fixers/parrot_example.py
vendored
Normal file
2
.CondaPkg/env/lib/python3.11/lib2to3/tests/data/fixers/parrot_example.py
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
def parrot():
|
||||
pass
|
||||
Reference in New Issue
Block a user