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

Miss Islington (bot) webhook-mailer at python.org
Fri Sep 13 09:07:52 EDT 2019


https://github.com/python/cpython/commit/60d5e2c5a57aed4b5a8a82ae6e95fa67552e9fc9
commit: 60d5e2c5a57aed4b5a8a82ae6e95fa67552e9fc9
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2019-09-13T06:07:48-07:00
summary:

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

(cherry picked from commit 53f78ec9e181f544b1a4575f32d42e296e05e4b4)

Co-authored-by: Kexuan Sun <me at kianasun.com>

files:
M Doc/library/os.path.rst

diff --git a/Doc/library/os.path.rst b/Doc/library/os.path.rst
index 640ceecbc78f..a5abacf02144 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`.



More information about the Python-checkins mailing list