mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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:
parent
af6a27a704
commit
bb51ed333b
1 changed files with 2 additions and 2 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue