Home
last modified time | relevance | path

Searched refs:refactor (Results 1 – 6 of 6) sorted by relevance

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/tests/
Dtest_refactor.py17 from lib2to3 import refactor, pygram, fixer_base
28 _DEFAULT_FIXERS = refactor.get_fixers_from_package("myfixes")
32 _2TO3_FIXERS = refactor.get_fixers_from_package("lib2to3.fixes")
48 return refactor.RefactoringTool(fixers, options, explicit)
58 non_prefixed = refactor.get_all_fix_names("myfixes")
59 prefixed = refactor.get_all_fix_names("myfixes", False)
60 full_names = refactor.get_fixers_from_package("myfixes")
67 run = refactor._detect_future_features
124 d = refactor._get_headnode_dict([no_head, with_head, simple])
146 self.assertRaises(refactor.FixerError, self.rt, fixers=["no_fixer_cls"])
[all …]
Dtest_all_fixers.py12 from lib2to3 import refactor
19 self.refactor = support.get_refactorer()
23 self.refactor.refactor_file(filepath)
Dsupport.py13 from lib2to3 import pytree, refactor
44 fixers = refactor.get_fixers_from_package(fixer_pkg + ".fixes")
46 return refactor.RefactoringTool(fixers, options, explicit=True)
Dtest_fixers.py10 from lib2to3 import pygram, pytree, refactor, fixer_util
21 self.refactor = support.get_refactorer(fixer_pkg, fix_list, options)
25 for fixer in chain(self.refactor.pre_order,
26 self.refactor.post_order):
32 tree = self.refactor.refactor_string(before, self.filename)
385 self.refactor.driver.grammar = pygram.python_grammar_no_print_statement
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/
Dmain.py14 from . import refactor
26 class StdoutRefactoringTool(refactor.MultiprocessRefactoringTool):
128 for fixname in refactor.get_all_fix_names(fixer_pkg):
149 avail_fixes = set(refactor.get_fixers_from_package(fixer_pkg))
172 rt.refactor(args, options.write, options.doctests_only,
174 except refactor.MultiprocessingUnsupported:
Drefactor.py289 def refactor(self, items, write=False, doctests_only=False): member in RefactoringTool
696 def refactor(self, items, write=False, doctests_only=False, member in MultiprocessRefactoringTool
699 return super(MultiprocessRefactoringTool, self).refactor(
714 super(MultiprocessRefactoringTool, self).refactor(items, write,