sol2 icon indicating copy to clipboard operation
sol2 copied to clipboard

Fixes #1688 single.py ResourceWarning

Open gunlock opened this issue 7 months ago • 0 comments

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

gunlock avatar Apr 14 '25 22:04 gunlock