summaryrefslogtreecommitdiffstats
path: root/Doc/library/os.path.rst
diff options
context:
space:
mode:
authorKexuan Sun <me@kianasun.com>2019-05-13 11:38:20 (GMT)
committerCheryl Sabella <cheryl.sabella@gmail.com>2019-05-13 11:38:20 (GMT)
commit32d1458b2e2e00eeb29022179eeb04b83fb7f3c4 (patch)
tree0fbc620f9097f98fdb8c136c1b60d5c6c45522e6 /Doc/library/os.path.rst
parentd5d9e81ce9a7efc5bc14a5c21398d1ef6f626884 (diff)
downloadcpython-32d1458b2e2e00eeb29022179eeb04b83fb7f3c4.zip
cpython-32d1458b2e2e00eeb29022179eeb04b83fb7f3c4.tar.gz
cpython-32d1458b2e2e00eeb29022179eeb04b83fb7f3c4.tar.bz2
Changes to the documentation of normcase (GH-4725)
Diffstat (limited to 'Doc/library/os.path.rst')
-rw-r--r--Doc/library/os.path.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/os.path.rst b/Doc/library/os.path.rst
index a167e3b..8e7ee8b 100644
--- a/Doc/library/os.path.rst
+++ b/Doc/library/os.path.rst
@@ -87,7 +87,7 @@ the :mod:`glob` module.)
.. function:: commonpath(paths)
Return the longest common sub-path of each pathname in the sequence
- *paths*. Raise ValueError if *paths* contains both absolute and relative
+ *paths*. Raise :exc:`ValueError` if *paths* contains both absolute and relative
pathnames, or if *paths* is empty. Unlike :func:`commonprefix`, this
returns a valid path.
@@ -324,9 +324,9 @@ the :mod:`glob` module.)
.. function:: normcase(path)
- 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.
+ Normalize the case of a pathname. On Windows, convert all characters in the
+ pathname to lowercase, and also convert forward slashes to backward slashes.
+ On other operating systems, return the path unchanged.
Raise a :exc:`TypeError` if the type of *path* is not ``str`` or ``bytes`` (directly
or indirectly through the :class:`os.PathLike` interface).