Home
last modified time | relevance | path

Searched refs:fixers (Results 1 – 19 of 19) sorted by relevance

/external/python/cpython2/Lib/lib2to3/tests/
Dsupport.py33 def get_refactorer(fixer_pkg="lib2to3", fixers=None, options=None): argument
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)
Dtest_refactor.py48 def rt(self, options=None, fixers=_DEFAULT_FIXERS, explicit=None): argument
49 return refactor.RefactoringTool(fixers, options, explicit)
152 self.assertRaises(ImportError, self.rt, fixers=["not_here"])
153 self.assertRaises(refactor.FixerError, self.rt, fixers=["no_fixer_cls"])
154 self.assertRaises(refactor.FixerError, self.rt, fixers=["bad_order"])
186 def check_file_refactoring(self, test_file, fixers=_2TO3_FIXERS, argument
201 rt = self.rt(fixers=fixers, options=options)
224 self.check_file_refactoring(test_file, fixers=(),
314 rt = self.rt(fixers=["myfixes.fix_explicit"])
/external/python/cpython3/Lib/lib2to3/tests/
Dsupport.py37 def get_refactorer(fixer_pkg="lib2to3", fixers=None, options=None): argument
45 if fixers is not None:
46 fixers = [fixer_pkg + ".fixes.fix_" + fix for fix in fixers]
48 fixers = refactor.get_fixers_from_package(fixer_pkg + ".fixes")
50 return refactor.RefactoringTool(fixers, options, explicit=True)
Dtest_refactor.py42 def rt(self, options=None, fixers=_DEFAULT_FIXERS, explicit=None): argument
43 return refactor.RefactoringTool(fixers, options, explicit)
146 self.assertRaises(ImportError, self.rt, fixers=["not_here"])
147 self.assertRaises(refactor.FixerError, self.rt, fixers=["no_fixer_cls"])
148 self.assertRaises(refactor.FixerError, self.rt, fixers=["bad_order"])
180 def check_file_refactoring(self, test_file, fixers=_2TO3_FIXERS, argument
185 rt = self.rt(fixers=fixers, options=options)
211 def refactor_file(self, test_file, fixers=_2TO3_FIXERS): argument
214 rt = self.rt(fixers=fixers)
228 self.check_file_refactoring(test_file, fixers=(),
[all …]
/external/python/cpython2/Lib/lib2to3/
Dbtm_matcher.py22 self.fixers = []
34 self.fixers = []
42 self.fixers.append(fixer)
47 match_node.fixers.append(fixer)
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)))
Drefactor.py190 self.fixers = fixer_names
244 for fix_mod_path in self.fixers:
432 for fixer in self.BM.fixers:
484 def traverse_by(self, fixers, traversal): argument
496 if not fixers:
499 for fixer in fixers[node.type]:
Dmain.py36 def __init__(self, fixers, options, explicit, nobackups, show_diffs, argument
63 super(StdoutRefactoringTool, self).__init__(fixers, options, explicit)
/external/python/cpython3/Lib/lib2to3/
Dbtm_matcher.py22 self.fixers = []
34 self.fixers = []
42 self.fixers.append(fixer)
47 match_node.fixers.append(fixer)
119 for fixer in current_ac_node.fixers:
133 for fixer in current_ac_node.fixers:
146 (node.id, subnode.id, type_repr(subnode_key), str(subnode.fixers)))
Drefactor.py171 self.fixers = fixer_names
225 for fix_mod_path in self.fixers:
413 for fixer in self.BM.fixers:
465 def traverse_by(self, fixers, traversal): argument
477 if not fixers:
480 for fixer in fixers[node.type]:
Dmain.py36 def __init__(self, fixers, options, explicit, nobackups, show_diffs, argument
63 super(StdoutRefactoringTool, self).__init__(fixers, options, explicit)
/external/python/setuptools/docs/
Dpython3.txt40 By default, the conversion uses all fixers in the ``lib2to3.fixers`` package.
41 To use additional fixers, the parameter ``use_2to3_fixers`` can be set
42 to a list of names of packages containing fixers. To exclude fixers, the
61 use_2to3_fixers=['your.fixers'],
Dsetuptools.txt413 A list of modules to search for additional fixers to be used during
/external/python/cpython2/Doc/library/
D2to3.rst9 of *fixers* to transform it into valid Python 3.x code. The standard library
10 contains a rich set of fixers that will handle almost all code. 2to3 supporting
12 possible to write your own fixers for 2to3. :mod:`lib2to3` could also be
61 By default, 2to3 runs a set of :ref:`predefined fixers <2to3-fixers>`. The
62 :option:`!-l` flag lists all available fixers. An explicit set of fixers to run
64 fixer. The following example runs only the ``imports`` and ``has_key`` fixers:
76 Some fixers are *explicit*, meaning they aren't run by default and must be
77 listed on the command line to be run. Here, in addition to the default fixers,
84 Notice how passing ``all`` enables all default fixers.
104 :option:`!-p` to run fixers on code that already has had its print statements
[all …]
/external/python/cpython3/Doc/library/
D2to3.rst9 of *fixers* to transform it into valid Python 3.x code. The standard library
10 contains a rich set of fixers that will handle almost all code. 2to3 supporting
12 possible to write your own fixers for 2to3. :mod:`lib2to3` could also be
61 By default, 2to3 runs a set of :ref:`predefined fixers <2to3-fixers>`. The
62 :option:`!-l` flag lists all available fixers. An explicit set of fixers to run
64 fixer. The following example runs only the ``imports`` and ``has_key`` fixers:
76 Some fixers are *explicit*, meaning they aren't run by default and must be
77 listed on the command line to be run. Here, in addition to the default fixers,
84 Notice how passing ``all`` enables all default fixers.
104 :option:`!-p` to run fixers on code that already has had its print statements
[all …]
/external/python/cpython2/
DMakefile.pre.in1066 lib2to3/tests/data lib2to3/tests/data/fixers lib2to3/tests/data/fixers/myfixes \
/external/python/cpython3/
DMakefile.pre.in1323 lib2to3/tests/data lib2to3/tests/data/fixers \
1324 lib2to3/tests/data/fixers/myfixes \
/external/python/setuptools/
DCHANGES.rst2790 * Distribute #249: Added options to exclude 2to3 fixers
/external/jline/src/src/test/resources/jline/example/
Denglish.gz
/external/cldr/tools/java/org/unicode/cldr/util/data/transforms/
Dinternal_raw_IPA-old.txt71502 fixers %11317