Resolve "Python: Ensure opened files are closed."
This MR closes #239 (closed). In the temporary file commit, tempfile.NamedTemporaryFile
is preferred over tempfile.mkstemp
because it allows for simpler use of context managers and lets you choose what mode to open the file in. Also in this commit, note that in aa.py
and easyprof.py
destination files are now written directly, instead of writing to temp files and then renaming them.