

def cleanup_tempfiles():
    for tmpfile in tempfiles:
        try:
            os.unlink(tmpfile)
        except:
            pass
    for tmpdir in tempdirs:
        shutil.rmtree(tmpdir, ignore_errors=True)

dataset/ETHPy150Open reviewboard/rbtools/rbtools/utils/filesystem.py cleanup_tempfiles/original