def rename(source, target):
    try:
        _rename(source, target)
    except __HOLE__:
        e = extract_exception()
        if e.errno == errno.EXDEV:
            shutil.move(source, target)
        else:
            raise
dataset/ETHPy150Open cournape/Bento/bento/utils/os2.py/rename