sol2
sol2 copied to clipboard
Fixes #1688 single.py ResourceWarning
From the python documentation, calls to os.popen() return a file object connected to a pipe. A ResourceWarning is created when the returned file object is not closed.
The fix is to wrap the os.popen() in a with statement.
This has been tested on Linux.
Fixes #1688