Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
32d1458b
Commit
32d1458b
authored
May 13, 2019
by
Kexuan Sun
Committed by
Cheryl Sabella
May 13, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes to the documentation of normcase (GH-4725)
parent
d5d9e81c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Doc/library/os.path.rst
Doc/library/os.path.rst
+4
-4
No files found.
Doc/library/os.path.rst
View file @
32d1458b
...
@@ -87,7 +87,7 @@ the :mod:`glob` module.)
...
@@ -87,7 +87,7 @@ the :mod:`glob` module.)
.. function:: commonpath(paths)
.. function:: commonpath(paths)
Return the longest common sub-path of each pathname in the sequence
Return the longest common sub-path of each pathname in the sequence
*paths*. Raise
ValueError
if *paths* contains both absolute and relative
*paths*. Raise
:exc:`ValueError`
if *paths* contains both absolute and relative
pathnames, or if *paths* is empty. Unlike :func:`commonprefix`, this
pathnames, or if *paths* is empty. Unlike :func:`commonprefix`, this
returns a valid path.
returns a valid path.
...
@@ -324,9 +324,9 @@ the :mod:`glob` module.)
...
@@ -324,9 +324,9 @@ the :mod:`glob` module.)
.. function:: normcase(path)
.. function:: normcase(path)
Normalize the case of a pathname. On
Unix and Mac OS X, this returns
the
Normalize the case of a pathname. On
Windows, convert all characters in
the
path
unchanged; on case-insensitive filesystems, it converts the path to
path
name to lowercase, and also convert forward slashes to backward slashes.
lowercase. On Windows, it also converts 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
Raise a :exc:`TypeError` if the type of *path* is not ``str`` or ``bytes`` (directly
or indirectly through the :class:`os.PathLike` interface).
or indirectly through the :class:`os.PathLike` interface).
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment