HomeSort by relevance Sort by last modified time
    Searched refs:fixers (Results 1 - 12 of 12) sorted by null

  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/lib2to3/tests/
support.py 33 def get_refactorer(fixer_pkg="lib2to3", fixers=None, options=None):
37 fixers is a list of fixers for the RefactoringTool to use. By default
41 if fixers is not None:
42 fixers = [fixer_pkg + ".fixes.fix_" + fix for fix in fixers]
44 fixers = refactor.get_fixers_from_package(fixer_pkg + ".fixes")
46 return refactor.RefactoringTool(fixers, options, explicit=True)
test_refactor.py 24 FIXER_DIR = os.path.join(TEST_DATA_DIR, "fixers")
47 def rt(self, options=None, fixers=_DEFAULT_FIXERS, explicit=None):
48 return refactor.RefactoringTool(fixers, options, explicit)
151 self.assertRaises(ImportError, self.rt, fixers=["not_here"])
152 self.assertRaises(refactor.FixerError, self.rt, fixers=["no_fixer_cls"])
153 self.assertRaises(refactor.FixerError, self.rt, fixers=["bad_order"])
185 def check_file_refactoring(self, test_file, fixers=_2TO3_FIXERS,
200 rt = self.rt(fixers=fixers, options=options)
223 self.check_file_refactoring(test_file, fixers=()
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/lib2to3/tests/
support.py 33 def get_refactorer(fixer_pkg="lib2to3", fixers=None, options=None):
37 fixers is a list of fixers for the RefactoringTool to use. By default
41 if fixers is not None:
42 fixers = [fixer_pkg + ".fixes.fix_" + fix for fix in fixers]
44 fixers = refactor.get_fixers_from_package(fixer_pkg + ".fixes")
46 return refactor.RefactoringTool(fixers, options, explicit=True)
test_refactor.py 24 FIXER_DIR = os.path.join(TEST_DATA_DIR, "fixers")
47 def rt(self, options=None, fixers=_DEFAULT_FIXERS, explicit=None):
48 return refactor.RefactoringTool(fixers, options, explicit)
151 self.assertRaises(ImportError, self.rt, fixers=["not_here"])
152 self.assertRaises(refactor.FixerError, self.rt, fixers=["no_fixer_cls"])
153 self.assertRaises(refactor.FixerError, self.rt, fixers=["bad_order"])
185 def check_file_refactoring(self, test_file, fixers=_2TO3_FIXERS,
200 rt = self.rt(fixers=fixers, options=options)
223 self.check_file_refactoring(test_file, fixers=()
    [all...]
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/lib2to3/
btm_matcher.py 22 self.fixers = []
34 self.fixers = []
42 self.fixers.append(fixer)
47 match_node.fixers.append(fixer)
97 A dictionary of node matches with fixers as the keys
119 for fixer in current_ac_node.fixers:
136 for fixer in current_ac_node.fixers:
151 (node.id, subnode.id, type_repr(subnode_key), str(subnode.fixers)))
main.py 36 def __init__(self, fixers, options, explicit, nobackups, show_diffs,
40 fixers: A list of fixers to import.
42 explicit: A list of fixers to run even if they are explicit.
63 super(StdoutRefactoringTool, self).__init__(fixers, options, explicit)
138 fixer_pkg: the name of a package where the fixers are located.
refactor.py 79 """ Accepts a list of fixers and returns a dictionary
105 Return the fully qualified names for fixers in the package pkg_name.
186 fixer_names: a list of fixers to import
188 explicit: a list of fixers to run even if they are explicit.
190 self.fixers = fixer_names
216 self.bmi_pre_order = [] # Bottom Matcher incompatible fixers
222 # remove fixers that will be handled by the bottom-up
238 (pre_order, post_order), where pre_order is the list of fixers that
244 for fix_mod_path in self.fixers:
424 #use traditional matching for the incompatible fixers
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/lib2to3/
btm_matcher.py 22 self.fixers = []
34 self.fixers = []
42 self.fixers.append(fixer)
47 match_node.fixers.append(fixer)
97 A dictionary of node matches with fixers as the keys
119 for fixer in current_ac_node.fixers:
136 for fixer in current_ac_node.fixers:
151 (node.id, subnode.id, type_repr(subnode_key), str(subnode.fixers)))
main.py 36 def __init__(self, fixers, options, explicit, nobackups, show_diffs,
40 fixers: A list of fixers to import.
42 explicit: A list of fixers to run even if they are explicit.
63 super(StdoutRefactoringTool, self).__init__(fixers, options, explicit)
138 fixer_pkg: the name of a package where the fixers are located.
refactor.py 79 """ Accepts a list of fixers and returns a dictionary
105 Return the fully qualified names for fixers in the package pkg_name.
186 fixer_names: a list of fixers to import
188 explicit: a list of fixers to run even if they are explicit.
190 self.fixers = fixer_names
216 self.bmi_pre_order = [] # Bottom Matcher incompatible fixers
222 # remove fixers that will be handled by the bottom-up
238 (pre_order, post_order), where pre_order is the list of fixers that
244 for fix_mod_path in self.fixers:
424 #use traditional matching for the incompatible fixers
    [all...]
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/config/
Makefile 960 lib2to3/tests/data lib2to3/tests/data/fixers lib2to3/tests/data/fixers/myfixes \
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/config/
Makefile 961 lib2to3/tests/data lib2to3/tests/data/fixers lib2to3/tests/data/fixers/myfixes \
    [all...]

Completed in 324 milliseconds