Commit 20b758c4 authored by Michiel Cottaar's avatar Michiel Cottaar
Browse files

BUG: close file handles

parent c1580382
......@@ -495,9 +495,10 @@ def func_to_cmd(func, args=None, kwargs=None, tmp_dir=None, clean="never", verbo
pickle.dump(('module', func.__module__, func.__name__,
args, kwargs), pickle_bytes)
_, filename = tempfile.mkstemp(prefix=func.__name__ + '_',
handle, filename = tempfile.mkstemp(prefix=func.__name__ + '_',
verbose_script = f'\nprint("running {filename}")\n' if verbose else ''
if clean == 'never':
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment