mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-27 15:52:28 +00:00
python-3.6.zip added from Github
README.cosmo contains the necessary links.
This commit is contained in:
parent
75fc601ff5
commit
0c4c56ff39
4219 changed files with 1968626 additions and 0 deletions
5
third_party/python/Lib/lib2to3/tests/data/fixers/bad_order.py
vendored
Normal file
5
third_party/python/Lib/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
third_party/python/Lib/lib2to3/tests/data/fixers/myfixes/__init__.py
vendored
Normal file
0
third_party/python/Lib/lib2to3/tests/data/fixers/myfixes/__init__.py
vendored
Normal file
6
third_party/python/Lib/lib2to3/tests/data/fixers/myfixes/fix_explicit.py
vendored
Normal file
6
third_party/python/Lib/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
third_party/python/Lib/lib2to3/tests/data/fixers/myfixes/fix_first.py
vendored
Normal file
6
third_party/python/Lib/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
third_party/python/Lib/lib2to3/tests/data/fixers/myfixes/fix_last.py
vendored
Normal file
7
third_party/python/Lib/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
third_party/python/Lib/lib2to3/tests/data/fixers/myfixes/fix_parrot.py
vendored
Normal file
13
third_party/python/Lib/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
third_party/python/Lib/lib2to3/tests/data/fixers/myfixes/fix_preorder.py
vendored
Normal file
6
third_party/python/Lib/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
third_party/python/Lib/lib2to3/tests/data/fixers/no_fixer_cls.py
vendored
Normal file
1
third_party/python/Lib/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
third_party/python/Lib/lib2to3/tests/data/fixers/parrot_example.py
vendored
Normal file
2
third_party/python/Lib/lib2to3/tests/data/fixers/parrot_example.py
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
def parrot():
|
||||
pass
|
Loading…
Add table
Add a link
Reference in a new issue