Tim Golden added the comment:

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.

----------
Added file: http://bugs.python.org/file34983/issue9291.8.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9291>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to