[issue18644] Got ResourceWarning: unclosed file when using test function from formatter module
Eric V. Smith
report at bugs.python.org
Mon Jan 5 11:13:30 CET 2015
Eric V. Smith added the comment:
Good point on contextlib.closing not being needed. I usually use this pattern on things that aren't files!
On second thought, the with statement will close sys.stdin, so this isn't a valid pattern here. Sorry for the noise.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18644>
_______________________________________
More information about the Python-bugs-list
mailing list