8000 Update Lib/posixpath.py · python/cpython@759b189 · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 759b189

Browse files
Update Lib/posixpath.py
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
1 parent 2a055ba commit 759b189

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Lib/posixpath.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,8 +390,9 @@ def realpath(filename, *, strict=False):
390390
path, ok = _joinrealpath(filename[:0], filename, strict, {})
391391
return abspath(path)
392392

393-
# Join two paths, normalizing and eliminating any symbolic links encountered in
394-
# the second path. Two leading slashes are replaced by a single slash.
393+
# Join two paths, normalizing and eliminating any symbolic links
394+
# encountered in the second path.
395+
# Two leading slashes are replaced by a single slash.
395396
def _joinrealpath(path, rest, strict, seen):
396397
if isinstance(path, bytes):
397398
sep = b'/'

0 commit comments

Comments
 (0)
0