Author cvrebert
Recipients Arfrever, Hobson.Lane, Roman.Evstifeev, benjamin.peterson, cvrebert, eric.araujo, ganadist, giampaolo.rodola, r.david.murray, rosslagerwall, vstinner
Date 2012-04-23.12:49:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1335185348.36.0.672444948294.issue3177@psf.upfronthosting.co.za>
In-reply-to
Content
No, it isn't. Changing the `IOError(errno.ENOENT, "...`s to `FileNotFoundError("...`s would half fix it.

The other half, the `OSError(errno.ENOSYS)`s, has a FIXME for what's the right error to raise in that case ("no application associated with files of this type"). I have no idea myself. None of the new PEP 3151 errors apply. Nor did any of the errnos strictly speaking AFAICT; ENOSYS was the closest approximation I could find. Thoughts? Custom error class? Different errno? Something else?
History
Date User Action Args
2012-04-23 12:49:08cvrebertsetrecipients: + cvrebert, vstinner, giampaolo.rodola, benjamin.peterson, eric.araujo, ganadist, Arfrever, r.david.murray, rosslagerwall, Roman.Evstifeev, Hobson.Lane
2012-04-23 12:49:08cvrebertsetmessageid: <1335185348.36.0.672444948294.issue3177@psf.upfronthosting.co.za>
2012-04-23 12:49:07cvrebertlinkissue3177 messages
2012-04-23 12:49:07cvrebertcreate