def _convert_2to3(path):
 (base, ext) = os.path.splitext(path)
 new_path = ('%s.temp2to3%s' % (base, ext))
 copyfile(path, new_path)
 args = ['--doctests_only', '--no-diffs', '--write', '--nobackups', new_path]
 lib2to3main('lib2to3.fixes', args=args)
 return new_path

def _convert_2to3 ( path ) : ( base , ext ) = os . path . splitext ( path ) new_path = ( '%s.temp2to3%s' % ( base , ext ) ) copyfile ( path , new_path ) args = [ '--doctests_only' , '--no-diffs' , '--write' , '--nobackups' , new_path ] lib2to3main ( 'lib2to3.fixes' , args = args ) return new_path
convert the given file .