[issue21871] Python 2.7.7 regression in mimetypes read_windows_registry
agolde
report at bugs.python.org
Wed Jun 25 17:48:56 CEST 2014
New submission from agolde:
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
----------
components: Library (Lib), Windows
messages: 221553
nosy: agolde
priority: normal
severity: normal
status: open
title: Python 2.7.7 regression in mimetypes read_windows_registry
type: behavior
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21871>
_______________________________________
More information about the Python-bugs-list
mailing list