/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/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)
145 self.assertRaises(ImportError, self.rt, fixers=["not_here"])
146 self.assertRaises(refactor.FixerError, self.rt, fixers=["no_fixer_cls"])
147 self.assertRaises(refactor.FixerError, self.rt, fixers=["bad_order"])
179 def check_file_refactoring(self, test_file, fixers=_2TO3_FIXERS):
184 rt = self.rt(fixers=fixers)
273 rt = self.rt(fixers=["myfixes.fix_explicit"]) [all...] |
/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...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/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 | 31 def __init__(self, fixers, options, explicit, nobackups, show_diffs):
34 super(StdoutRefactoringTool, self).__init__(fixers, options, explicit)
89 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.
185 fixer_names: a list of fixers to import
187 explicit: a list of fixers to run even if they are explicit.
189 self.fixers = fixer_names
211 self.bmi_pre_order = [] # Bottom Matcher incompatible fixers
217 # remove fixers that will be handled by the bottom-up
233 (pre_order, post_order), where pre_order is the list of fixers that
239 for fix_mod_path in self.fixers:
419 #use traditional matching for the incompatible fixers
[all...] |
/prebuilts/gdb/darwin-x86/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/gdb/linux-x86/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/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/go/darwin-x86/src/cmd/fix/ |
main.go | 155 // or position information for subsequent fixers.
|
/prebuilts/go/linux-x86/src/cmd/fix/ |
main.go | 155 // or position information for subsequent fixers.
|
/prebuilts/gdb/darwin-x86/lib/python2.7/config/ |
Makefile | 960 lib2to3/tests/data lib2to3/tests/data/fixers lib2to3/tests/data/fixers/myfixes \ [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/config/ |
Makefile | 961 lib2to3/tests/data lib2to3/tests/data/fixers lib2to3/tests/data/fixers/myfixes \ [all...] |