[issue18853] Got ResourceWarning unclosed file when running Lib/shlex.py demo
R. David Murray
report at bugs.python.org
Sat Oct 18 02:34:52 CEST 2014
R. David Murray added the comment:
Thanks for the patch, Vajrasky, but I chose a different fix, since the proposed one could leave the file open if the shlex constructor raised an error. Not particularly important, but as long as we are cleaning up the code we might as well make it as clean as we can.
Since 2.7 doesn't generate ResourceWarnings I chose not to apply it there.
----------
nosy: +r.david.murray
resolution: -> fixed
stage: commit review -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18853>
_______________________________________
More information about the Python-bugs-list
mailing list