[issue4265] shutil.copyfile() leaks file descriptors when disk fills
Tres Seaver
report at bugs.python.org
Sun May 2 21:42:16 CEST 2010
Tres Seaver <tseaver at agendaless.com> added the comment:
This bug exists on Python 2.6, too.
It seems to me that the right solution here is to use both opened files as context managers. See attached patch (made against the release26-maint branch).
The patch also cleans up the old-style exception signature in the precondition check.
----------
keywords: +patch
nosy: +tseaver
Added file: http://bugs.python.org/file17185/issue4265_shutil_copyfile.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4265>
_______________________________________
More information about the Python-bugs-list
mailing list