Skip to content
Snippets Groups Projects
Commit b3a6fdf5 authored by Alex Kavanagh's avatar Alex Kavanagh
Browse files

Fix dangling file open() commands with no corresponding close

The code relies on a undocumented (and probably unstable) feature
of CPython to close a file when the reference is GCed.  However,
it's pretty poor practice to do so, so this patchset replaces them
with "with ..." statements to ensure that the files are closed
when no longer being used.

Change-Id: I6f24bc042a820ddd0147247267ee159753cfc1fb
parent ad1dd757
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment