@contextmanager<EOL>def ensure_clean_path(path):
try:<EOL><INDENT>if isinstance(path, list):<EOL><INDENT>filenames = [create_tempfile(p) for p in path]<EOL>yield filenames<EOL><DEDENT>else:<EOL><INDENT>filenames = [create_tempfile(path)]<EOL>yield filenames[<NUM_LIT:0>]<EOL><DEDENT><DEDENT>finally:<EOL><INDENT>for f in filenames:<EOL><INDENT>safe_remove(f)<EOL><DEDENT><DEDENT>
return essentially a named temporary file that is not opened
and deleted on existing; if path is a list, then create and
return list of filenames