Home
last modified time | relevance | path

Searched refs:fixer_pkg (Results 1 – 8 of 8) sorted by relevance

/external/python/cpython2/Lib/lib2to3/tests/
Dsupport.py33 def get_refactorer(fixer_pkg="lib2to3", fixers=None, options=None): argument
42 fixers = [fixer_pkg + ".fixes.fix_" + fix for fix in fixers]
44 fixers = refactor.get_fixers_from_package(fixer_pkg + ".fixes")
Dtest_fixers.py18 def setUp(self, fix_list=None, fixer_pkg="lib2to3", options=None): argument
21 self.refactor = support.get_refactorer(fixer_pkg, fix_list, options)
/external/python/cpython3/Lib/lib2to3/tests/
Dsupport.py37 def get_refactorer(fixer_pkg="lib2to3", fixers=None, options=None): argument
46 fixers = [fixer_pkg + ".fixes.fix_" + fix for fix in fixers]
48 fixers = refactor.get_fixers_from_package(fixer_pkg + ".fixes")
Dtest_fixers.py17 def setUp(self, fix_list=None, fixer_pkg="lib2to3", options=None): argument
20 self.refactor = support.get_refactorer(fixer_pkg, fix_list, options)
/external/python/cpython3/Lib/lib2to3/
Dmain.py133 def main(fixer_pkg, args=None): argument
198 for fixname in refactor.get_all_fix_names(fixer_pkg):
220 avail_fixes = set(refactor.get_fixers_from_package(fixer_pkg))
221 unwanted_fixes = set(fixer_pkg + ".fix_" + fix for fix in options.nofix)
229 explicit.add(fixer_pkg + ".fix_" + fix)
Drefactor.py30 def get_all_fix_names(fixer_pkg, remove_prefix=True): argument
32 pkg = __import__(fixer_pkg, [], [], ["*"])
/external/python/cpython2/Lib/lib2to3/
Dmain.py134 def main(fixer_pkg, args=None): argument
199 for fixname in refactor.get_all_fix_names(fixer_pkg):
221 avail_fixes = set(refactor.get_fixers_from_package(fixer_pkg))
222 unwanted_fixes = set(fixer_pkg + ".fix_" + fix for fix in options.nofix)
230 explicit.add(fixer_pkg + ".fix_" + fix)
Drefactor.py33 def get_all_fix_names(fixer_pkg, remove_prefix=True): argument
35 pkg = __import__(fixer_pkg, [], [], ["*"])