summaryrefslogtreecommitdiff
path: root/Doc/library/io.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/io.rst')
-rw-r--r--Doc/library/io.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/io.rst b/Doc/library/io.rst
index 2a3c5d8853..5fec4cd46f 100644
--- a/Doc/library/io.rst
+++ b/Doc/library/io.rst
@@ -754,7 +754,8 @@ Text I/O
It inherits :class:`TextIOBase`.
*encoding* gives the name of the encoding that the stream will be decoded or
- encoded with. It defaults to ``locale.getpreferredencoding(False)``.
+ encoded with. It defaults to
+ :func:`locale.getpreferredencoding(False) <locale.getpreferredencoding>`.
*errors* is an optional string that specifies how encoding and decoding
errors are to be handled. Pass ``'strict'`` to raise a :exc:`ValueError`