[issue11767] Maildir iterator leaks file descriptors by default
Filip Gruszczyński
report at bugs.python.org
Thu Apr 7 23:14:28 CEST 2011
Filip Gruszczyński <gruszczy at gmail.com> added the comment:
I am sorry. This is the first time I see contextlib and haven't understood, that I should use a function from it. Here is a version with mock object having close method and __getitem__ using contextlib.closing.
----------
Added file: http://bugs.python.org/file21572/11767_3.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11767>
_______________________________________
More information about the Python-bugs-list
mailing list