Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 32d1458

Browse files
kianasuncsabella
authored andcommitted
Changes to the documentation of normcase (GH-4725)
1 parent d5d9e81 commit 32d1458

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Doc/library/os.path.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ the :mod:`glob` module.)
8787
.. function:: commonpath(paths)
8888

8989
Return the longest common sub-path of each pathname in the sequence
90-
*paths*. Raise ValueError if *paths* contains both absolute and relative
90+
*paths*. Raise :exc:`ValueError` if *paths* contains both absolute and relative
9191
pathnames, or if *paths* is empty. Unlike :func:`commonprefix`, this
9292
returns a valid path.
9393

@@ -324,9 +324,9 @@ the :mod:`glob` module.)
324324

325325
.. function:: normcase(path)
326326

327-
Normalize the case of a pathname. On Unix and Mac OS X, this returns the
328-
path unchanged; on case-insensitive filesystems, it converts the path to
329-
lowercase. On Windows, it also converts forward slashes to backward slashes.
327+
Normalize the case of a pathname. On Windows, convert all characters in the
328+
pathname to lowercase, and also convert forward slashes to backward slashes.
329+
On other operating systems, return the path unchanged.
330330
Raise a :exc:`TypeError` if the type of *path* is not ``str`` or ``bytes`` (directly
331331
or indirectly through the :class:`os.PathLike` interface).
332332

0 commit comments

Comments
 (0)