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

All Samples(9)  |  Call(9)  |  Derive(0)  |  Import(0)
Return the fully qualified names for fixers in the package pkg_name.

        def get_fixers_from_package(pkg_name):
    """
    Return the fully qualified names for fixers in the package pkg_name.
    """
    return [pkg_name + "." + fix_name
            for fix_name in get_all_fix_names(pkg_name, False)]
        


src/p/y/py3kwarn-HEAD/py3kwarn/main.py   py3kwarn(Download)
def warnings_for_string(data, name=''):
    tool = WarnRefactoringTool(
        refactor.get_fixers_from_package(
            'py3kwarn2to3.fixes'))
    data += '\n'  # Silence certain parse errors
 
    tool = PrintWarnRefactoringTool(refactor.get_fixers_from_package(
        'py3kwarn2to3.fixes'))
 
    if filenames == ['-']:

src/p/y/py3kwarn-0.4.4/py3kwarn/main.py   py3kwarn(Download)
def warnings_for_string(data, name=''):
    tool = WarnRefactoringTool(
        refactor.get_fixers_from_package(
            'py3kwarn2to3.fixes'))
    data += '\n'  # Silence certain parse errors
 
    tool = PrintWarnRefactoringTool(refactor.get_fixers_from_package(
        'py3kwarn2to3.fixes'))
 
    if filenames == ['-']:

src/p/y/py3kwarn-HEAD/py3kwarn2to3/tests/test_refactor.py   py3kwarn(Download)
sys.path.append(FIXER_DIR)
try:
    _DEFAULT_FIXERS = refactor.get_fixers_from_package("myfixes")
finally:
    sys.path.pop()
 
_2TO3_FIXERS = refactor.get_fixers_from_package("py3kwarn2to3.fixes")
    def test_fixer_loading_helpers(self):
        contents = ["explicit", "first", "last", "parrot", "preorder"]
        non_prefixed = refactor.get_all_fix_names("myfixes")
        prefixed = refactor.get_all_fix_names("myfixes", False)
        full_names = refactor.get_fixers_from_package("myfixes")
        try:
            fn = os.path.join(TEST_DATA_DIR, "crlf.py")
            fixes = refactor.get_fixers_from_package("py3kwarn2to3.fixes")
            self.check_file_refactoring(fn, fixes)
        finally:

src/p/y/py3kwarn-HEAD/py3kwarn2to3/tests/support.py   py3kwarn(Download)
        fixers = [fixer_pkg + ".fixes.fix_" + fix for fix in fixers]
    else:
        fixers = refactor.get_fixers_from_package(fixer_pkg + ".fixes")
    options = options or {}
    return refactor.RefactoringTool(fixers, options, explicit=True)