From 6ce1daedc3c571c2c091cb53d00db4b77a3cd00c Mon Sep 17 00:00:00 2001 From: Brian Curtin Date: Thu, 21 Oct 2010 14:45:01 +0000 Subject: Fix r85774 editor fail. Had a dangling try and incorrect indent. --- Lib/mimetypes.py | 3 +-- 1 file changed, 1 insertion(+), 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 -- cgit v0.12