summaryrefslogtreecommitdiffstats
path: root/Doc/lib
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2006-01-17 05:24:25 (GMT)
committerBarry Warsaw <barry@python.org>2006-01-17 05:24:25 (GMT)
commit48653af70f4c09acf3f062a736b00a31678a6896 (patch)
tree45afc4043678ef8302e99eb6ec9e5ea38befac9b /Doc/lib
parenta0f28efcd1819d7baccd1a212a21ffb1af5558bd (diff)
downloadcpython-48653af70f4c09acf3f062a736b00a31678a6896.zip
cpython-48653af70f4c09acf3f062a736b00a31678a6896.tar.gz
cpython-48653af70f4c09acf3f062a736b00a31678a6896.tar.bz2
Update email.Message.get_filename() documentation.
Diffstat (limited to 'Doc/lib')
-rw-r--r--Doc/lib/emailmessage.tex9
1 files changed, 5 insertions, 4 deletions
diff --git a/Doc/lib/emailmessage.tex b/Doc/lib/emailmessage.tex
index 9059d88..9b41852 100644
--- a/Doc/lib/emailmessage.tex
+++ b/Doc/lib/emailmessage.tex
@@ -435,10 +435,11 @@ When the \mailheader{Content-Type} header is set a
\begin{methoddesc}[Message]{get_filename}{\optional{failobj}}
Return the value of the \code{filename} parameter of the
-\mailheader{Content-Disposition} header of the message, or \var{failobj} if
-either the header is missing, or has no \code{filename} parameter.
-The returned string will always be unquoted as per
-\method{Utils.unquote()}.
+\mailheader{Content-Disposition} header of the message. If the header does
+not have a \code{filename} parameter, this method falls back to looking for
+the \code{name} parameter. If neither is found, or the header is missing,
+then \var{failobj} is returned. The returned string will always be unquoted
+as per \method{Utils.unquote()}.
\end{methoddesc}
\begin{methoddesc}[Message]{get_boundary}{\optional{failobj}}