[Python-checkins] python/dist/src/Lib mimetypes.py,1.23,1.24
doerwalter@users.sourceforge.net
doerwalter@users.sourceforge.net
Fri, 03 Jan 2003 11:33:20 -0800
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1:/tmp/cvs-serv14139
Modified Files:
mimetypes.py
Log Message:
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.
Index: mimetypes.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/mimetypes.py,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** mimetypes.py 6 Sep 2002 16:15:58 -0000 1.23
--- mimetypes.py 3 Jan 2003 19:33:17 -0000 1.24
***************
*** 316,321 ****
return None
db = MimeTypes()
! db.readfp(f)
! return db.types_map
--- 316,321 ----
return None
db = MimeTypes()
! db.readfp(f, True)
! return db.types_map[True]