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 tim.golden
Recipients Daniel.Szoska, Dmitry.Jemerov, Hugo.Lol, Michał.Pasternak, Roman.Evstifeev, Suzumizaki, Vladimir Iofik, aclover, adamhj, brian.curtin, eric.araujo, frankoid, jaraco, kaizhu, loewis, me21, r.david.murray, shimizukawa, tim.golden, vldmit, vstinner
Date 2014-04-20.14:47:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1398005231.6.0.590453992014.issue9291@psf.upfronthosting.co.za>
In-reply-to
Content
Another version of the patch: this one, in addition to removing the unnecessary encodes, also does the check for extensions before attempting to open the registry key, and narrows down the try-catch block to just the attempt to read the "Content Type" value.

This does mean that if any process is unable to read HKCR or its subkeys the mimetypes.init will fail. Frankly, I can't see how that could happen, but if anyone feels strongly enough I can add extra guards so it fails silently.
History
Date User Action Args
2014-04-20 14:47:11tim.goldensetrecipients: + tim.golden, loewis, jaraco, vstinner, eric.araujo, kaizhu, aclover, r.david.murray, brian.curtin, Suzumizaki, frankoid, Dmitry.Jemerov, shimizukawa, vldmit, Vladimir Iofik, Roman.Evstifeev, adamhj, me21, Hugo.Lol, Daniel.Szoska, Michał.Pasternak
2014-04-20 14:47:11tim.goldensetmessageid: <1398005231.6.0.590453992014.issue9291@psf.upfronthosting.co.za>
2014-04-20 14:47:11tim.goldenlinkissue9291 messages
2014-04-20 14:47:11tim.goldencreate