commit | 6ce1daedc3c571c2c091cb53d00db4b77a3cd00c | [log] [tgz] |
---|---|---|
author | Brian Curtin <brian.curtin@gmail.com> | Thu Oct 21 14:45:01 2010 +0000 |
committer | Brian Curtin <brian.curtin@gmail.com> | Thu Oct 21 14:45:01 2010 +0000 |
tree | ebc732cbcf43a58420eae9b587e0f656246f270b | |
parent | 000f974b44c570ea042e2e61823ae243dfb9b429 [diff] [blame] |
Fix r85774 editor fail. Had a dangling try and incorrect indent.
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 @@ 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