(fixer_pkg, remove_prefix=True)
return fix_names
Return a sorted list of all available fix names in the given package.
Return a sorted list of all available fix names in the given package.
Return a sorted list of all available fix names in the given package .
def get_all_fix_names(fixer_pkg, remove_prefix=True):
    """Return a sorted list of all available fix names in the given package."""
    pkg = __import__(fixer_pkg, [], [], ["*"])
    fix_names = []
    for finder, name, ispkg in pkgutil.iter_modules(pkg.__path__):
        if name.startswith("fix_"):
            if remove_prefix:
                name = name[4:]
            fix_names.append(name)
    return fix_names
def get_all_fix_names ( fixer_pkg , remove_prefix = True ) : pkg = __import__ ( fixer_pkg , [ ] , [ ] , [ "*" ] ) fix_names = [ ] for finder , name , ispkg in pkgutil . iter_modules ( pkg . __path__ ) : if name . startswith ( "fix_" ) : if remove_prefix : name = name [ 4 : ] fix_names . append ( name ) return fix_names