From: Kexuan Sun Date: Fri, 13 Sep 2019 13:01:02 +0000 (-0700) Subject: Doc: Improve consistency of os.path.normcase with other os.path functions (GH-14004) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=53f78ec9e181f544b1a4575f32d42e296e05e4b4;p=python Doc: Improve consistency of os.path.normcase with other os.path functions (GH-14004) --- diff --git a/Doc/library/os.path.rst b/Doc/library/os.path.rst index 640ceecbc7..a5abacf021 100644 --- a/Doc/library/os.path.rst +++ b/Doc/library/os.path.rst @@ -328,8 +328,6 @@ the :mod:`glob` module.) 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). .. versionchanged:: 3.6 Accepts a :term:`path-like object`.