Tres Seaver <tsea...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue4265>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to