[Python-checkins] python/dist/src/Doc/lib libbase64.tex,1.20,1.20.6.1

rhettinger@sourceforge.net rhettinger@sourceforge.net
Wed, 15 May 2002 21:33:35 -0700


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

Modified Files:
      Tag: release22-maint
	libbase64.tex 
Log Message:
Patch 547037.  Corrected documentation to match 
actual module behavior for adding newlines.


Index: libbase64.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libbase64.tex,v
retrieving revision 1.20
retrieving revision 1.20.6.1
diff -C2 -d -r1.20 -r1.20.6.1
*** libbase64.tex	28 Nov 2001 07:26:15 -0000	1.20
--- libbase64.tex	16 May 2002 04:33:33 -0000	1.20.6.1
***************
*** 41,47 ****
  \var{input} and \var{output} must either be file objects or objects that
  mimic the file object interface. \var{input} will be read until
! \code{\var{input}.read()} returns an empty string.  If the last input
! character is not a newline (\code{'\e n'}), a newline will be added to
! the input data.
  \end{funcdesc}
  
--- 41,47 ----
  \var{input} and \var{output} must either be file objects or objects that
  mimic the file object interface. \var{input} will be read until
! \code{\var{input}.read()} returns an empty string.  \function{encode()}
! returns the encoded data plus a trailing newline character
! (\code{'\e n'}).
  \end{funcdesc}
  
***************
*** 49,58 ****
  Encode the string \var{s}, which can contain arbitrary binary data,
  and return a string containing one or more lines of
! base64-encoded data.  If the last character of \var{s} is not a
! newline (\code{'\e n'}), a newline will be added.  This causes
! \code{encodestring('hello!')} to return the same value as
! \code{encodestring('hello!\e n')}.
  \end{funcdesc}
- 
  
  \begin{seealso}
--- 49,56 ----
  Encode the string \var{s}, which can contain arbitrary binary data,
  and return a string containing one or more lines of
! base64-encoded data.  \function{encodestring()} returns a
! string containing one or more lines of base64-encoded data
! always including an extra trailing newline (\code{'\e n'}).
  \end{funcdesc}
  
  \begin{seealso}