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

Fred L. Drake python-dev@python.org
Mon, 24 Jul 2000 12:33:52 -0700


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory slayer.i.sourceforge.net:/tmp/cvs-serv18311/lib

Modified Files:
	libcodecs.tex 
Log Message:

Fix small typos and markup consistency nits.


Index: libcodecs.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libcodecs.tex,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** libcodecs.tex	2000/04/06 16:09:59	1.2
--- libcodecs.tex	2000/07/24 19:33:49	1.3
***************
*** 66,76 ****
  also defines these utility functions:
  
! \begin{funcdesc}{open}{filename, mode\optional{, encoding=None\optional{, errors='strict'\optional{, buffering=1}}}}
  Open an encoded file using the given \var{mode} and return
  a wrapped version providing transparent encoding/decoding.
  
  \strong{Note:} The wrapped version will only accept the object format
! defined by the codecs, i.e. Unicode objects for most builtin
! codecs. Output is also codec dependent and will usually by Unicode as
  well.
  
--- 66,77 ----
  also defines these utility functions:
  
! \begin{funcdesc}{open}{filename, mode\optional{, encoding\optional{,
!                        errors\optional{, buffering}}}}
  Open an encoded file using the given \var{mode} and return
  a wrapped version providing transparent encoding/decoding.
  
  \strong{Note:} The wrapped version will only accept the object format
! defined by the codecs, i.e.\ Unicode objects for most built-in
! codecs.  Output is also codec-dependent and will usually be Unicode as
  well.
  
***************
*** 79,84 ****
  
  \var{errors} may be given to define the error handling. It defaults
! to 'strict' which causes a \exception{ValueError} to be raised in case
! an encoding error occurs.
  
  \var{buffering} has the same meaning as for the built-in
--- 80,85 ----
  
  \var{errors} may be given to define the error handling. It defaults
! to \code{'strict'} which causes a \exception{ValueError} to be raised
! in case an encoding error occurs.
  
  \var{buffering} has the same meaning as for the built-in
***************
*** 86,91 ****
  \end{funcdesc}
  
! \begin{funcdesc}{EncodedFile}{file, input\optional{, output=None\optional{, errors='strict'}}}
! 
  Return a wrapped version of file which provides transparent
  encoding translation.
--- 87,92 ----
  \end{funcdesc}
  
! \begin{funcdesc}{EncodedFile}{file, input\optional{,
!                               output\optional{, errors}}}
  Return a wrapped version of file which provides transparent
  encoding translation.
***************
*** 93,103 ****
  Strings written to the wrapped file are interpreted according to the
  given \var{input} encoding and then written to the original file as
! string using the \var{output} encoding. The intermediate encoding will
  usually be Unicode but depends on the specified codecs.
  
! If \var{output} is not given, it defaults to input.
  
  \var{errors} may be given to define the error handling. It defaults to
! 'strict' which causes \exception{ValueError} to be raised in case
  an encoding error occurs.
  \end{funcdesc}
--- 94,104 ----
  Strings written to the wrapped file are interpreted according to the
  given \var{input} encoding and then written to the original file as
! strings using the \var{output} encoding. The intermediate encoding will
  usually be Unicode but depends on the specified codecs.
  
! If \var{output} is not given, it defaults to \var{input}.
  
  \var{errors} may be given to define the error handling. It defaults to
! \code{'strict'}, which causes \exception{ValueError} to be raised in case
  an encoding error occurs.
  \end{funcdesc}