Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(2)  |  Derive(1)  |  Import(0)

src/p/y/py3kwarn-HEAD/py3kwarn2to3/tests/support.py   py3kwarn(Download)
        fixers = refactor.get_fixers_from_package(fixer_pkg + ".fixes")
    options = options or {}
    return refactor.RefactoringTool(fixers, options, explicit=True)
 
def all_project_files():

src/p/y/py3kwarn-HEAD/py3kwarn2to3/tests/test_refactor.py   py3kwarn(Download)
    def rt(self, options=None, fixers=_DEFAULT_FIXERS, explicit=None):
        return refactor.RefactoringTool(fixers, options, explicit)
 
    def test_print_function_option(self):
        rt = self.rt({"print_function" : True})
        class MyRT(refactor.RefactoringTool):
 
            def print_output(self, old_text, new_text, filename, equal):
                results.extend([old_text, new_text, filename, equal])