[Python-checkins] cpython (2.7): Issue #12160: Fix incorrect StreamCodec references in Codec.encode() and
berker.peksag
python-checkins at python.org
Thu Jul 30 22:27:22 CEST 2015
https://hg.python.org/cpython/rev/296a09614f31
changeset: 97150:296a09614f31
branch: 2.7
parent: 97142:309cbbc32491
user: Berker Peksag <berker.peksag at gmail.com>
date: Thu Jul 30 23:27:13 2015 +0300
summary:
Issue #12160: Fix incorrect StreamCodec references in Codec.encode() and Codec.decode() docs.
It should StreamWriter for Codecs.encode() and StreamReader for Codec.decode().
Patch by Nick Weinhold.
files:
Doc/library/codecs.rst | 8 ++++----
Lib/codecs.py | 8 ++++----
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/Doc/library/codecs.rst b/Doc/library/codecs.rst
--- a/Doc/library/codecs.rst
+++ b/Doc/library/codecs.rst
@@ -392,8 +392,8 @@
handling.
The method may not store state in the :class:`Codec` instance. Use
- :class:`StreamCodec` for codecs which have to keep state in order to make
- encoding/decoding efficient.
+ :class:`StreamWriter` for codecs which have to keep state in order to make
+ encoding efficient.
The encoder must be able to handle zero length input and return an empty object
of the output object type in this situation.
@@ -413,8 +413,8 @@
handling.
The method may not store state in the :class:`Codec` instance. Use
- :class:`StreamCodec` for codecs which have to keep state in order to make
- encoding/decoding efficient.
+ :class:`StreamReader` for codecs which have to keep state in order to make
+ decoding efficient.
The decoder must be able to handle zero length input and return an empty object
of the output object type in this situation.
diff --git a/Lib/codecs.py b/Lib/codecs.py
--- a/Lib/codecs.py
+++ b/Lib/codecs.py
@@ -138,8 +138,8 @@
'strict' handling.
The method may not store state in the Codec instance. Use
- StreamCodec for codecs which have to keep state in order to
- make encoding/decoding efficient.
+ StreamWriter for codecs which have to keep state in order to
+ make encoding efficient.
The encoder must be able to handle zero length input and
return an empty object of the output object type in this
@@ -161,8 +161,8 @@
'strict' handling.
The method may not store state in the Codec instance. Use
- StreamCodec for codecs which have to keep state in order to
- make encoding/decoding efficient.
+ StreamReader for codecs which have to keep state in order to
+ make decoding efficient.
The decoder must be able to handle zero length input and
return an empty object of the output object type in this
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list