bpo-35044, doc: Use the :exc: role for the exceptions (GH-10037)

This commit is contained in:
Stéphane Wirtel 2018-10-26 12:52:11 +02:00 committed by Victor Stinner
parent ddb961d2ab
commit e483f02423
17 changed files with 19 additions and 17 deletions

View file

@ -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