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 arkady.koplyarov
Recipients SilentGhost, arkady.koplyarov, brian.curtin, ncoghlan
Date 2011-03-17.00:25:44
SpamBayes Score 0.007953929
Marked as misclassified No
Message-id <1300321544.8.0.130791473865.issue11577@psf.upfronthosting.co.za>
In-reply-to
Content
Well, I believe that in BinHex.__init__() I cannot just wrap the _writeinfo call into a try-finally block, and close ofp in the finally.

I see that in the case of normal operation when the exception is not thrown, the output file descriptor ofp is used in binhex(inp,out) as a result of BinHex.__init__() and so need remain open until binhex(inp,out) close it explicitly.
History
Date User Action Args
2011-03-17 00:25:44arkady.koplyarovsetrecipients: + arkady.koplyarov, ncoghlan, brian.curtin, SilentGhost
2011-03-17 00:25:44arkady.koplyarovsetmessageid: <1300321544.8.0.130791473865.issue11577@psf.upfronthosting.co.za>
2011-03-17 00:25:44arkady.koplyarovlinkissue11577 messages
2011-03-17 00:25:44arkady.koplyarovcreate