[Python-checkins] r42078 - python/branches/release23-maint/Doc/lib/emailmessage.tex

barry.warsaw python-checkins at python.org
Tue Jan 17 06:17:30 CET 2006


Author: barry.warsaw
Date: Tue Jan 17 06:17:29 2006
New Revision: 42078

Modified:
   python/branches/release23-maint/Doc/lib/emailmessage.tex
Log:
Updated docs for email.Message.get_filename()


Modified: python/branches/release23-maint/Doc/lib/emailmessage.tex
==============================================================================
--- python/branches/release23-maint/Doc/lib/emailmessage.tex	(original)
+++ python/branches/release23-maint/Doc/lib/emailmessage.tex	Tue Jan 17 06:17:29 2006
@@ -431,10 +431,11 @@
 
 \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}}


More information about the Python-checkins mailing list