]> granicus.if.org Git - python/commitdiff
Doc: Improve consistency of os.path.normcase with other os.path functions (GH-14004)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 13 Sep 2019 13:07:48 +0000 (06:07 -0700)
committerGitHub <noreply@github.com>
Fri, 13 Sep 2019 13:07:48 +0000 (06:07 -0700)
(cherry picked from commit 53f78ec9e181f544b1a4575f32d42e296e05e4b4)

Co-authored-by: Kexuan Sun <me@kianasun.com>
Doc/library/os.path.rst

index 640ceecbc78f16e75802aa837a85b53fcc9c0cc9..a5abacf02144a765113763718cb4cbc76f339107 100644 (file)
@@ -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`.