diff options
author | Stéphane Wirtel <stephane@wirtel.be> | 2018-10-26 10:52:11 (GMT) |
---|---|---|
committer | Victor Stinner <vstinner@redhat.com> | 2018-10-26 10:52:11 (GMT) |
commit | e483f02423917dc4dfd25f46e5b9e6fce304777d (patch) | |
tree | 6171799d4ddcc72b7364a62b3f08a1fe124e8f6e /Doc/library/io.rst | |
parent | ddb961d2abe5d5fde76d85b21a77e4e91e0043ad (diff) | |
download | cpython-e483f02423917dc4dfd25f46e5b9e6fce304777d.zip cpython-e483f02423917dc4dfd25f46e5b9e6fce304777d.tar.gz cpython-e483f02423917dc4dfd25f46e5b9e6fce304777d.tar.bz2 |
bpo-35044, doc: Use the :exc: role for the exceptions (GH-10037)
Diffstat (limited to 'Doc/library/io.rst')
-rw-r--r-- | Doc/library/io.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/io.rst b/Doc/library/io.rst index 98649de..2536c37e 100644 --- a/Doc/library/io.rst +++ b/Doc/library/io.rst @@ -39,7 +39,7 @@ pipe). All streams are careful about the type of data you give to them. For example giving a :class:`str` object to the ``write()`` method of a binary stream -will raise a ``TypeError``. So will giving a :class:`bytes` object to the +will raise a :exc:`TypeError`. So will giving a :class:`bytes` object to the ``write()`` method of a text stream. .. versionchanged:: 3.3 |