summaryrefslogtreecommitdiffstats
path: root/Doc/library/os.path.rst
diff options
context:
space:
mode:
authorStéphane Wirtel <stephane@wirtel.be>2018-10-26 10:52:11 (GMT)
committerVictor Stinner <vstinner@redhat.com>2018-10-26 10:52:11 (GMT)
commite483f02423917dc4dfd25f46e5b9e6fce304777d (patch)
tree6171799d4ddcc72b7364a62b3f08a1fe124e8f6e /Doc/library/os.path.rst
parentddb961d2abe5d5fde76d85b21a77e4e91e0043ad (diff)
downloadcpython-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/os.path.rst')
-rw-r--r--Doc/library/os.path.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/os.path.rst b/Doc/library/os.path.rst
index 379308c..03644e2 100644
--- a/Doc/library/os.path.rst
+++ b/Doc/library/os.path.rst
@@ -325,7 +325,7 @@ the :mod:`glob` module.)
Normalize the case of a pathname. On Unix and Mac OS X, this returns the
path unchanged; on case-insensitive filesystems, it converts the path to
lowercase. On Windows, it also converts forward slashes to backward slashes.
- Raise a TypeError if the type of *path* is not ``str`` or ``bytes`` (directly
+ Raise a :exc:`TypeError` if the type of *path* is not ``str`` or ``bytes`` (directly
or indirectly through the :class:`os.PathLike` interface).
.. versionchanged:: 3.6