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 agolde
Recipients agolde
Date 2014-06-25.15:48:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1403711336.08.0.362199436706.issue21871@psf.upfronthosting.co.za>
In-reply-to
Content
Python 2.7.7 seems to contain a regression of issue #10162 as compared with 2.7.6, re-introduced by the fix of issue #9291.

import mimetypes
mimetypes.init()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Program Files\INRO\Emme\Emme 4\Emme-4.1.3\Python27\lib\mimetypes.py",
 line 348, in init
    db.read_windows_registry()
  File "C:\Program Files\INRO\Emme\Emme 4\Emme-4.1.3\Python27\lib\mimetypes.py",
 line 256, in read_windows_registry
    with _winreg.OpenKey(hkcr, subkeyname) as subkey:
WindowsError: [Error 5] Access is denied

Whereas with Python 2.7.6 on the same system, this doesn't generate any errors.

It looks like in Python 2.7.6, "with _winreg.OpenKey(hkcr, subkeyname) as subkey:" was within a try-except which was moved with the patch for issue#9291 in Python 2.7.7
History
Date User Action Args
2014-06-25 15:48:56agoldesetrecipients: + agolde
2014-06-25 15:48:56agoldesetmessageid: <1403711336.08.0.362199436706.issue21871@psf.upfronthosting.co.za>
2014-06-25 15:48:56agoldelinkissue21871 messages
2014-06-25 15:48:55agoldecreate