Commit e979a01e authored by Walter Dörwald's avatar Walter Dörwald

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.
parent 36a73db8
...@@ -315,8 +315,8 @@ def read_mime_types(file): ...@@ -315,8 +315,8 @@ def read_mime_types(file):
except IOError: except IOError:
return None return None
db = MimeTypes() db = MimeTypes()
db.readfp(f) db.readfp(f, True)
return db.types_map return db.types_map[True]
suffix_map = { suffix_map = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment