diff options
author | Barry Warsaw <barry@python.org> | 2003-06-09 22:27:41 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2003-06-09 22:27:41 (GMT) |
commit | 9caa0d1642b79020a1665560e6efaedabfadfba3 (patch) | |
tree | f0d7a3303445d8777eff6e152fa6ada997a50402 /Doc/lib | |
parent | e07b83591fe4c9e6dec9b9e94b97bb536985a2ff (diff) | |
download | cpython-9caa0d1642b79020a1665560e6efaedabfadfba3.zip cpython-9caa0d1642b79020a1665560e6efaedabfadfba3.tar.gz cpython-9caa0d1642b79020a1665560e6efaedabfadfba3.tar.bz2 |
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.
Diffstat (limited to 'Doc/lib')
-rw-r--r-- | Doc/lib/libmimetypes.tex | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Doc/lib/libmimetypes.tex b/Doc/lib/libmimetypes.tex index 64296f0..8e07768 100644 --- a/Doc/lib/libmimetypes.tex +++ b/Doc/lib/libmimetypes.tex @@ -53,8 +53,7 @@ Guess the extensions for a file based on its MIME type, given by The return value is a list of strings giving all possible filename extensions, 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. +to the MIME type \var{type} by \function{guess_type()}. Optional \var{strict} has the same meaning as with the \function{guess_type()} function. |