[issue22831] Use "with" to avoid possible fd leaks

Martin Panter report at bugs.python.org
Fri Mar 20 10:20:28 CET 2015


Martin Panter added the comment:

Posting a version of Serhiy’s patch made with “hg diff -p --ignore-all-space”. It is a bit shorter, and should not include all the re-indented lines, which may help reviewing.

----------
Added file: http://bugs.python.org/file38589/fd_leaks.ignore-all-space.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22831>
_______________________________________


More information about the Python-bugs-list mailing list