Searched refs:fixers (Results 1 – 8 of 8) sorted by relevance
/external/python/cpython2/Lib/lib2to3/tests/ |
D | support.py | 33 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)
|
D | test_refactor.py | 48 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/cpython2/Lib/lib2to3/ |
D | btm_matcher.py | 22 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)))
|
D | refactor.py | 190 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]:
|
D | main.py | 36 def __init__(self, fixers, options, explicit, nobackups, show_diffs, argument 63 super(StdoutRefactoringTool, self).__init__(fixers, options, explicit)
|
/external/python/cpython2/Doc/library/ |
D | 2to3.rst | 9 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/ |
D | Makefile.pre.in | 1055 lib2to3/tests/data lib2to3/tests/data/fixers lib2to3/tests/data/fixers/myfixes \
|
/external/jline/src/src/test/resources/jline/example/ |
D | english.gz |
|