def side_effect(old_cmd, command):
    with tarfile.TarFile(_tar_file(old_cmd.script_parts)[0]) as archive:
        for file in archive.getnames():
            try:
                os.remove(file)
            except __HOLE__:
                # does not try to remove directories as we cannot know if they
                # already existed before
                pass
dataset/ETHPy150Open nvbn/thefuck/thefuck/rules/dirty_untar.py/side_effect