summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-09-01 14:15:55 +0000
committerGeorg Brandl <georg@python.org>2008-09-01 14:15:55 +0000
commit2ba93210e2bd8e96d1a61c4446de00e3b61e7c84 (patch)
treec3b359543b0f61e5f5196cdfc206d7705fc18bde
parentf22c26ecf4c28e16d262cdb1305411286fb925c9 (diff)
downloadcpython-git-2ba93210e2bd8e96d1a61c4446de00e3b61e7c84.tar.gz
#3749: fix c'n'p errors.
-rw-r--r--Doc/library/codecs.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/codecs.rst b/Doc/library/codecs.rst
index 87aceda7e0..cd9690e0ea 100644
--- a/Doc/library/codecs.rst
+++ b/Doc/library/codecs.rst
@@ -51,13 +51,13 @@ It defines the following functions:
Codec Interface). The functions/methods are expected to work in a stateless
mode.
- *incrementalencoder* and *incrementalencoder*: These have to be factory
+ *incrementalencoder* and *incrementaldecoder*: These have to be factory
functions providing the following interface:
``factory(errors='strict')``
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.
*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.
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.
The set of allowed values for the *errors* argument can be extended with