Doc: Improve consistency of os.path.normcase with other os.path functions (GH-14004)

This commit is contained in:
Kexuan Sun 2019-09-13 06:01:02 -07:00 committed by Stéphane Wirtel
parent 9eb35ab0d7
commit 53f78ec9e1

View file

@ -328,8 +328,6 @@ the :mod:`glob` module.)
Normalize the case of a pathname. On Windows, convert all characters in the Normalize the case of a pathname. On Windows, convert all characters in the
pathname to lowercase, and also convert forward slashes to backward slashes. pathname to lowercase, and also convert forward slashes to backward slashes.
On other operating systems, return the path unchanged. 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).
.. versionchanged:: 3.6 .. versionchanged:: 3.6
Accepts a :term:`path-like object`. Accepts a :term:`path-like object`.