[Python-checkins] python/dist/src/Doc/lib emailheaders.tex,1.2,1.3

bwarsaw@users.sourceforge.net bwarsaw@users.sourceforge.net
Mon, 30 Dec 2002 11:17:39 -0800


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv21782

Modified Files:
	emailheaders.tex 
Log Message:
Describe the new `errors' argument to Header.__init__() and
Header.append()


Index: emailheaders.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/emailheaders.tex,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** emailheaders.tex	1 Oct 2002 04:33:15 -0000	1.2
--- emailheaders.tex	30 Dec 2002 19:17:37 -0000	1.3
***************
*** 49,53 ****
  
  \begin{classdesc}{Header}{\optional{s\optional{, charset\optional{,
!     maxlinelen\optional{, header_name\optional{, continuation_ws}}}}}}
  Create a MIME-compliant header that can contain strings in different
  character sets.
--- 49,54 ----
  
  \begin{classdesc}{Header}{\optional{s\optional{, charset\optional{,
!     maxlinelen\optional{, header_name\optional{, continuation_ws\optional{,
!     errors}}}}}}}
  Create a MIME-compliant header that can contain strings in different
  character sets.
***************
*** 80,84 ****
  \end{classdesc}
  
! \begin{methoddesc}[Header]{append}{s\optional{, charset}}
  Append the string \var{s} to the MIME header.
  
--- 81,88 ----
  \end{classdesc}
  
! Optional \var{errors} is passed straight through to the
! \method{append()} method.
! 
! \begin{methoddesc}[Header]{append}{s\optional{, charset\optional{, errors}}}
  Append the string \var{s} to the MIME header.
  
***************
*** 101,104 ****
--- 105,111 ----
  in order: \code{us-ascii}, the \var{charset} hint, \code{utf-8}.  The
  first character set to not provoke a \exception{UnicodeError} is used.
+ 
+ Optional \var{errors} is passed through to any \function{unicode()} or
+ \function{ustr.encode()} call, and defaults to ``strict''.
  \end{methoddesc}