#3749: fix c'n'p errors.
This commit is contained in:
parent
f22c26ecf4
commit
2ba93210e2
|
@ -51,13 +51,13 @@ It defines the following functions:
|
||||||
Codec Interface). The functions/methods are expected to work in a stateless
|
Codec Interface). The functions/methods are expected to work in a stateless
|
||||||
mode.
|
mode.
|
||||||
|
|
||||||
*incrementalencoder* and *incrementalencoder*: These have to be factory
|
*incrementalencoder* and *incrementaldecoder*: These have to be factory
|
||||||
functions providing the following interface:
|
functions providing the following interface:
|
||||||
|
|
||||||
``factory(errors='strict')``
|
``factory(errors='strict')``
|
||||||
|
|
||||||
The factory functions must return objects providing the interfaces defined by
|
The factory functions must return objects providing the interfaces defined by
|
||||||
the base classes :class:`IncrementalEncoder` and :class:`IncrementalEncoder`,
|
the base classes :class:`IncrementalEncoder` and :class:`IncrementalDecoder`,
|
||||||
respectively. Incremental codecs can maintain state.
|
respectively. Incremental codecs can maintain state.
|
||||||
|
|
||||||
*streamreader* and *streamwriter*: These have to be factory functions providing
|
*streamreader* and *streamwriter*: These have to be factory functions providing
|
||||||
|
@ -477,7 +477,7 @@ define in order to be compatible with the Python codec registry.
|
||||||
|
|
||||||
The *errors* argument will be assigned to an attribute of the same name.
|
The *errors* argument will be assigned to an attribute of the same name.
|
||||||
Assigning to this attribute makes it possible to switch between different error
|
Assigning to this attribute makes it possible to switch between different error
|
||||||
handling strategies during the lifetime of the :class:`IncrementalEncoder`
|
handling strategies during the lifetime of the :class:`IncrementalDecoder`
|
||||||
object.
|
object.
|
||||||
|
|
||||||
The set of allowed values for the *errors* argument can be extended with
|
The set of allowed values for the *errors* argument can be extended with
|
||||||
|
|
Loading…
Reference in New Issue