Searched defs:refactor (Results 1 - 12 of 12) sorted by relevance

/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/lib2to3/tests/
H A Dtest_all_fixers.py12 from lib2to3 import refactor namespace
19 self.refactor = support.get_refactorer()
23 self.refactor.refactor_file(filepath)
H A Dsupport.py13 from lib2to3 import pytree, refactor namespace
44 fixers = refactor.get_fixers_from_package(fixer_pkg + ".fixes")
46 return refactor.RefactoringTool(fixers, options, explicit=True)
H A Dtest_refactor.py2 Unit tests for refactor.py.
17 from lib2to3 import refactor, pygram, fixer_base namespace
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)
64 non_prefixed = refactor.get_all_fix_names("myfixes")
65 prefixed = refactor.get_all_fix_names("myfixes", False)
66 full_names = refactor.get_fixers_from_package("myfixes")
73 run = refactor._detect_future_features
130 d = refactor
[all...]
H A Dtest_fixers.py10 from lib2to3 import pygram, pytree, refactor, fixer_util namespace
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
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/lib2to3/tests/
H A Dtest_all_fixers.py12 from lib2to3 import refactor namespace
19 self.refactor = support.get_refactorer()
23 self.refactor.refactor_file(filepath)
H A Dsupport.py13 from lib2to3 import pytree, refactor namespace
44 fixers = refactor.get_fixers_from_package(fixer_pkg + ".fixes")
46 return refactor.RefactoringTool(fixers, options, explicit=True)
H A Dtest_refactor.py2 Unit tests for refactor.py.
17 from lib2to3 import refactor, pygram, fixer_base namespace
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)
64 non_prefixed = refactor.get_all_fix_names("myfixes")
65 prefixed = refactor.get_all_fix_names("myfixes", False)
66 full_names = refactor.get_fixers_from_package("myfixes")
73 run = refactor._detect_future_features
130 d = refactor
[all...]
H A Dtest_fixers.py10 from lib2to3 import pygram, pytree, refactor, fixer_util namespace
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
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/lib2to3/
H A Dmain.py14 from . import refactor namespace
26 class StdoutRefactoringTool(refactor.MultiprocessRefactoringTool):
49 All files processed by refactor() must start with this path.
199 for fixname in refactor.get_all_fix_names(fixer_pkg):
221 avail_fixes = set(refactor.get_fixers_from_package(fixer_pkg))
259 rt.refactor(args, options.write, options.doctests_only,
261 except refactor.MultiprocessingUnsupported:
H A Drefactor.py6 Used as a main program, this can refactor any number of files and/or
199 # When this is True, the refactor*() methods will call write_file() for
201 # and only if the refactor method's write parameter was True.
294 def refactor(self, items, write=False, doctests_only=False): member in class:RefactoringTool
304 """Descends down a directory and refactor every Python file found.
702 def refactor(self, items, write=False, doctests_only=False, member in class:MultiprocessRefactoringTool
705 return super(MultiprocessRefactoringTool, self).refactor(
720 super(MultiprocessRefactoringTool, self).refactor(items, write,
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/lib2to3/
H A Dmain.py14 from . import refactor namespace
26 class StdoutRefactoringTool(refactor.MultiprocessRefactoringTool):
49 All files processed by refactor() must start with this path.
199 for fixname in refactor.get_all_fix_names(fixer_pkg):
221 avail_fixes = set(refactor.get_fixers_from_package(fixer_pkg))
259 rt.refactor(args, options.write, options.doctests_only,
261 except refactor.MultiprocessingUnsupported:
H A Drefactor.py6 Used as a main program, this can refactor any number of files and/or
199 # When this is True, the refactor*() methods will call write_file() for
201 # and only if the refactor method's write parameter was True.
294 def refactor(self, items, write=False, doctests_only=False): member in class:RefactoringTool
304 """Descends down a directory and refactor every Python file found.
702 def refactor(self, items, write=False, doctests_only=False, member in class:MultiprocessRefactoringTool
705 return super(MultiprocessRefactoringTool, self).refactor(
720 super(MultiprocessRefactoringTool, self).refactor(items, write,

Completed in 434 milliseconds