Skip to content

Commit 60d5e2c

Browse files
Doc: Improve consistency of os.path.normcase with other os.path functions (GH-14004)
(cherry picked from commit 53f78ec) Co-authored-by: Kexuan Sun <[email protected]>
1 parent 44cb89a commit 60d5e2c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Doc/library/os.path.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,6 @@ the :mod:`glob` module.)
328328
Normalize the case of a pathname. On Windows, convert all characters in the
329329
pathname to lowercase, and also convert forward slashes to backward slashes.
330330
On other operating systems, return the path unchanged.
331-
Raise a :exc:`TypeError` if the type of *path* is not ``str`` or ``bytes`` (directly
332-
or indirectly through the :class:`os.PathLike` interface).
333331

334332
.. versionchanged:: 3.6
335333
Accepts a :term:`path-like object`.

0 commit comments

Comments
 (0)