summaryrefslogtreecommitdiffstats
path: root/Doc/library/codecs.rst
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-05-27 14:50:40 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-05-27 14:50:40 (GMT)
commit05010706697ce9c18e7f8a8e571753b0bcfd6548 (patch)
tree2ab12cefd89264c49464dd7a1a6554637510ef11 /Doc/library/codecs.rst
parent4f2dab5c337f202b8fe3058108efc40cb1a0a724 (diff)
downloadcpython-05010706697ce9c18e7f8a8e571753b0bcfd6548.zip
cpython-05010706697ce9c18e7f8a8e571753b0bcfd6548.tar.gz
cpython-05010706697ce9c18e7f8a8e571753b0bcfd6548.tar.bz2
Revert my commit 3555cf6f9c98: "Issue #8796: codecs.open() calls the builtin
open() function instead of using StreamReaderWriter. Deprecate StreamReader, StreamWriter, StreamReaderWriter, StreamRecoder and EncodedFile() of the codec module. Use the builtin open() function or io.TextIOWrapper instead." "It has not been approved !" wrote Marc-Andre Lemburg.
Diffstat (limited to 'Doc/library/codecs.rst')
-rw-r--r--Doc/library/codecs.rst25
1 files changed, 0 insertions, 25 deletions
diff --git a/Doc/library/codecs.rst b/Doc/library/codecs.rst
index b58e410..4d5058e 100644
--- a/Doc/library/codecs.rst
+++ b/Doc/library/codecs.rst
@@ -85,9 +85,6 @@ It defines the following functions:
In case a search function cannot find a given encoding, it should return
``None``.
- .. deprecated:: 3.3
- *streamreader* and *streamwriter* attributes are now deprecated.
-
.. function:: lookup(encoding)
@@ -142,8 +139,6 @@ functions which use :func:`lookup` for the codec lookup:
Raises a :exc:`LookupError` in case the encoding cannot be found.
- .. deprecated:: 3.3
-
.. function:: getwriter(encoding)
@@ -152,8 +147,6 @@ functions which use :func:`lookup` for the codec lookup:
Raises a :exc:`LookupError` in case the encoding cannot be found.
- .. deprecated:: 3.3
-
.. function:: register_error(name, error_handler)
@@ -224,11 +217,6 @@ utility functions:
.. note::
- This function is kept for backward compatibility with Python 2, the
- builtin :func:`open` function should be used instead.
-
- .. note::
-
The wrapped version's methods will accept and return strings only. Bytes
arguments will be rejected.
@@ -263,8 +251,6 @@ utility functions:
``'strict'``, which causes :exc:`ValueError` to be raised in case an encoding
error occurs.
- .. deprecated:: 3.3
-
.. function:: iterencode(iterator, encoding, errors='strict', **kwargs)
@@ -577,9 +563,6 @@ The :class:`StreamWriter` class is a subclass of :class:`Codec` and defines the
following methods which every stream writer must define in order to be
compatible with the Python codec registry.
-.. deprecated:: 3.3
- Use the builtin the :class:`io.TextIOWrapper` class.
-
.. class:: StreamWriter(stream[, errors])
@@ -645,9 +628,6 @@ The :class:`StreamReader` class is a subclass of :class:`Codec` and defines the
following methods which every stream reader must define in order to be
compatible with the Python codec registry.
-.. deprecated:: 3.3
- Use the builtin the :class:`io.TextIOWrapper` class.
-
.. class:: StreamReader(stream[, errors])
@@ -748,9 +728,6 @@ and write modes.
The design is such that one can use the factory functions returned by the
:func:`lookup` function to construct the instance.
-.. deprecated:: 3.3
- Use the :class:`io.TextIOWrapper` class.
-
.. class:: StreamReaderWriter(stream, Reader, Writer, errors)
@@ -775,8 +752,6 @@ which is sometimes useful when dealing with different encoding environments.
The design is such that one can use the factory functions returned by the
:func:`lookup` function to construct the instance.
-.. deprecated:: 3.3
-
.. class:: StreamRecoder(stream, encode, decode, Reader, Writer, errors)