From: Brian Curtin Date: Thu, 21 Oct 2010 14:45:01 +0000 (+0000) Subject: Fix r85774 editor fail. Had a dangling try and incorrect indent. X-Git-Tag: v3.2a4~394 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6ce1daedc3c571c2c091cb53d00db4b77a3cd00c;p=thirdparty%2FPython%2Fcpython.git Fix r85774 editor fail. Had a dangling try and incorrect indent. --- diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py index 9e7cbe8a2053..745b19feb912 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