def _convert_2to3(path):
    base, ext = os.path.splitext(path)
    # For example, "README.temp2to3.rst".
    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, and return the path to the converted files.
dataset/ETHPy150Open defunkt/pystache/pystache/tests/doctesting.py/_convert_2to3