commit | bb51ed333b623b6acf90a34ec6da9b4d076503e5 | [log] [tgz] |
---|---|---|
author | Walter Dörwald <walter@livinglogic.de> | Fri Jan 03 19:33:17 2003 +0000 |
committer | Walter Dörwald <walter@livinglogic.de> | Fri Jan 03 19:33:17 2003 +0000 |
tree | 30db46f1c3800dd974d1a4bb68225c317c03bd54 | |
parent | af6a27a704cd832f91e25b1052f4b6cc52a4e704 [diff] [blame] |
Fix read_mime_types() so that it returns a dict as documented. This fixes a bug reported as http://www.python.org/sf/661630, which was introduced in the patch http://www.python.org/sf/554192.
diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py index 846d56b..f1a1a3e 100644 --- a/Lib/mimetypes.py +++ b/Lib/mimetypes.py
@@ -315,8 +315,8 @@ except IOError: return None db = MimeTypes() - db.readfp(f) - return db.types_map + db.readfp(f, True) + return db.types_map[True] suffix_map = {