[Python-checkins] CVS: python/dist/src/Doc/lib libbase64.tex,1.18,1.19
Fred L. Drake
fdrake@users.sourceforge.net
Fri, 28 Sep 2001 09:01:48 -0700
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv26538/lib
Modified Files:
libbase64.tex
Log Message:
State that encode() and encodestring() append a newline to the input data
if it does not already end with a newline.
This fixes SF bug #463330.
Index: libbase64.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libbase64.tex,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** libbase64.tex 2001/07/14 02:50:55 1.18
--- libbase64.tex 2001/09/28 16:01:46 1.19
***************
*** 41,45 ****
\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.
\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. If the last input
! character is not a newline (\code{'\e n'}), a newline will be added to
! the input data.
\end{funcdesc}
***************
*** 47,51 ****
Encode the string \var{s}, which can contain arbitrary binary data,
and return a string containing one or more lines of
! base64 encoded data.
\end{funcdesc}
--- 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. 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}