[Python-checkins] python/dist/src/Doc/lib libmimetypes.tex,1.11,1.12
bwarsaw@users.sourceforge.net
bwarsaw@users.sourceforge.net
2003年6月09日 15:27:42 -0700
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv21947/Doc/lib
Modified Files:
libmimetypes.tex
Log Message:
guess_all_extensions(): Return the empty list instead of None when
there are no matching types. Updated the docs and docstrings. Added
some unit tests.
Index: libmimetypes.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libmimetypes.tex,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** libmimetypes.tex 6 Sep 2002 16:15:57 -0000 1.11
--- libmimetypes.tex 9 Jun 2003 22:27:40 -0000 1.12
***************
*** 54,59 ****
including the leading dot (\character{.}). The extensions are not guaranteed
to have been associated with any particular data stream, but would be mapped
! to the MIME type \var{type} by \function{guess_type()}. If no extension can
! be guessed for \var{type}, \code{None} is returned.
Optional \var{strict} has the same meaning as with the
--- 54,58 ----
including the leading dot (\character{.}). The extensions are not guaranteed
to have been associated with any particular data stream, but would be mapped
! to the MIME type \var{type} by \function{guess_type()}.
Optional \var{strict} has the same meaning as with the