mirror of https://github.com/python/cpython
Move introductory sentence to where it belongs.
This commit is contained in:
parent
bfcd6533e4
commit
1a7a894d90
|
@ -95,9 +95,6 @@ class or factory function.
|
|||
Raises a \exception{LookupError} in case the encoding cannot be found.
|
||||
\end{funcdesc}
|
||||
|
||||
To simplify working with encoded files or stream, the module
|
||||
also defines these utility functions:
|
||||
|
||||
\begin{funcdesc}{register_error}{name, error_handler}
|
||||
Register the error handling function \var{error_handler} under the
|
||||
name \var{name}. \var{error_handler} will be called during encoding
|
||||
|
@ -135,6 +132,9 @@ Implements the \code{xmlcharrefreplace} error handling.
|
|||
Implements the \code{backslashreplace} error handling.
|
||||
\end{funcdesc}
|
||||
|
||||
To simplify working with encoded files or stream, the module
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue