[Python-checkins] r85775 - python/branches/py3k/Lib/mimetypes.py
brian.curtin
python-checkins at python.org
Thu Oct 21 16:45:01 CEST 2010
Author: brian.curtin
Date: Thu Oct 21 16:45:01 2010
New Revision: 85775
Log:
Fix r85774 editor fail. Had a dangling try and incorrect indent.
Modified:
python/branches/py3k/Lib/mimetypes.py
Modified: python/branches/py3k/Lib/mimetypes.py
==============================================================================
--- python/branches/py3k/Lib/mimetypes.py (original)
+++ python/branches/py3k/Lib/mimetypes.py Thu Oct 21 16:45:01 2010
@@ -255,8 +255,7 @@
for ctype in enum_types(mimedb):
try:
with _winreg.OpenKey(mimedb, ctype) as key:
- try:
- suffix, datatype = _winreg.QueryValueEx(key,
+ suffix, datatype = _winreg.QueryValueEx(key,
'Extension')
except EnvironmentError:
continue
More information about the Python-checkins
mailing list