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 sniffer
Recipients barry, brett.cannon, flox, sniffer
Date 2010-08-26.04:38:07
SpamBayes Score 6.1192186e-06
Marked as misclassified No
Message-id <1282797493.21.0.801976158382.issue9572@psf.upfronthosting.co.za>
In-reply-to
Content
I Had the same issue while using the lib. I had to replace every: IOError with (IOError, OSError) to catch both and just then compare exc.errno.

Also in your r84271 commit, on line 507 you did:

507 : 	with _io.FileIO(path, 'wb') as file: 

shouldn't it be:

507 : 	with _closing(_io.FileIO(path, 'wb')) as file: 

as in previous commit? In case of an error, you're not closing the file properly. Or am I reading that wrong?

Cheers.
History
Date User Action Args
2010-08-26 04:38:13sniffersetrecipients: + sniffer, barry, brett.cannon, flox
2010-08-26 04:38:13sniffersetmessageid: <1282797493.21.0.801976158382.issue9572@psf.upfronthosting.co.za>
2010-08-26 04:38:11snifferlinkissue9572 messages
2010-08-26 04:38:08sniffercreate