This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tseaver
Recipients ammon_riley, pitrou, tseaver
Date 2010-05-02.19:42:13
SpamBayes Score 1.5837337e-05
Marked as misclassified No
Message-id <1272829336.88.0.0323357967544.issue4265@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-05-02 19:42:16tseaversetrecipients: + tseaver, pitrou, ammon_riley
2010-05-02 19:42:16tseaversetmessageid: <1272829336.88.0.0323357967544.issue4265@psf.upfronthosting.co.za>
2010-05-02 19:42:14tseaverlinkissue4265 messages
2010-05-02 19:42:14tseavercreate