mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
#9018: os.path.normcase() now raises a TypeError if the argument is not str or bytes.
This commit is contained in:
parent
6186bfb735
commit
5a3ef5b22a
7 changed files with 27 additions and 7 deletions
|
@ -201,6 +201,7 @@ applications should use string objects to access all files.
|
|||
Normalize the case of a pathname. On Unix and Mac OS X, this returns the
|
||||
path unchanged; on case-insensitive filesystems, it converts the path to
|
||||
lowercase. On Windows, it also converts forward slashes to backward slashes.
|
||||
Raise a TypeError if the type of *path* is not ``str`` or ``bytes``.
|
||||
|
||||
|
||||
.. function:: normpath(path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue