Commit bb51ed33 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 af6a27a7
......@@ -315,8 +315,8 @@ def read_mime_types(file):
except IOError:
return None
db = MimeTypes()
db.readfp(f)
return db.types_map
db.readfp(f, True)
return db.types_map[True]
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