summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Curtin <brian.curtin@gmail.com>2010-10-21 14:45:01 (GMT)
committerBrian Curtin <brian.curtin@gmail.com>2010-10-21 14:45:01 (GMT)
commit6ce1daedc3c571c2c091cb53d00db4b77a3cd00c (patch)
treeebc732cbcf43a58420eae9b587e0f656246f270b
parent000f974b44c570ea042e2e61823ae243dfb9b429 (diff)
downloadcpython-6ce1daedc3c571c2c091cb53d00db4b77a3cd00c.zip
cpython-6ce1daedc3c571c2c091cb53d00db4b77a3cd00c.tar.gz
cpython-6ce1daedc3c571c2c091cb53d00db4b77a3cd00c.tar.bz2
Fix r85774 editor fail. Had a dangling try and incorrect indent.
-rw-r--r--Lib/mimetypes.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py
index 9e7cbe8..745b19f 100644
--- a/Lib/mimetypes.py
+++ b/Lib/mimetypes.py
@@ -255,8 +255,7 @@ class MimeTypes:
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