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.
This commit is contained in:
Walter Dörwald 2003-01-03 19:33:17 +00:00
parent af6a27a704
commit bb51ed333b

View file

@ -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 = {