summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2017-11-10 23:14:00 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2017-11-10 23:14:00 (GMT)
commit7abbddd88d4debe75b201145b6212afb7d93c457 (patch)
treefe59d38dc05ce349141616630ab4e6e19e9d925b
parent7997fa2e2159cfce0cfbe985a953174ac86694a4 (diff)
downloadcpython-7abbddd88d4debe75b201145b6212afb7d93c457.zip
cpython-7abbddd88d4debe75b201145b6212afb7d93c457.tar.gz
cpython-7abbddd88d4debe75b201145b6212afb7d93c457.tar.bz2
bpo-31824: Document default value of 'errors' parameters (GH-4328)
(cherry picked from commit e184cfd7bf8bcfd160e3b611d4351ca3ce52d9e2)
-rw-r--r--Doc/library/codecs.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/codecs.rst b/Doc/library/codecs.rst
index b9c1868..6e249ec 100644
--- a/Doc/library/codecs.rst
+++ b/Doc/library/codecs.rst
@@ -802,7 +802,7 @@ The design is such that one can use the factory functions returned by the
:func:`lookup` function to construct the instance.
-.. class:: StreamReaderWriter(stream, Reader, Writer, errors)
+.. class:: StreamReaderWriter(stream, Reader, Writer, errors='strict')
Creates a :class:`StreamReaderWriter` instance. *stream* must be a file-like
object. *Reader* and *Writer* must be factory functions or classes providing the
@@ -826,7 +826,7 @@ The design is such that one can use the factory functions returned by the
:func:`lookup` function to construct the instance.
-.. class:: StreamRecoder(stream, encode, decode, Reader, Writer, errors)
+.. class:: StreamRecoder(stream, encode, decode, Reader, Writer, errors='strict')
Creates a :class:`StreamRecoder` instance which implements a two-way conversion:
*encode* and *decode* work on the frontend — the data visible to