def get_all_fix_names(fixer_pkg, remove_prefix=True):
 pkg = __import__(fixer_pkg, [], [], ['*'])
 fixer_dir = os.path.dirname(pkg.__file__)
 fix_names = []
 for name in sorted(os.listdir(fixer_dir)):
  if (name.startswith('fix_') and name.endswith('.py')):
   if remove_prefix:
    name = name[4:]
   fix_names.append(name[:(-3)])
 return fix_names

def get_all_fix_names ( fixer_pkg , remove_prefix = True ) : pkg = __import__ ( fixer_pkg , [ ] , [ ] , [ '*' ] ) fixer_dir = os . path . dirname ( pkg . __file__ ) fix_names = [ ] for name in sorted ( os . listdir ( fixer_dir ) ) : if ( name . startswith ( 'fix_' ) and name . endswith ( '.py' ) ) : if remove_prefix : name = name [ 4 : ] fix_names . append ( name [ : ( - 3 ) ] ) return fix_names
return a sorted list of all available fix names in the given package .