def get_refactorer(fixers=None, options=None):
 if (fixers is not None):
  fixers = [('lib2to3.fixes.fix_' + fix) for fix in fixers]
 else:
  fixers = refactor.get_fixers_from_package('lib2to3.fixes')
 options = (options or {})
 return refactor.RefactoringTool(fixers, options, explicit=True)

def get_refactorer ( fixers = None , options = None ) : if ( fixers is not None ) : fixers = [ ( 'lib2to3.fixes.fix_' + fix ) for fix in fixers ] else : fixers = refactor . get_fixers_from_package ( 'lib2to3.fixes' ) options = ( options or { } ) return refactor . RefactoringTool ( fixers , options , explicit = True )
a convenience function for creating a refactoringtool for tests .