Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update Lib/posixpath.py
Co-authored-by: Petr Viktorin <encukou@gmail.com>
  • Loading branch information
barneygale and encukou authored Apr 2, 2024
commit 15199a87c55cf22d2b88f3068ec1d079a0357d05
2 changes: 1 addition & 1 deletion Lib/posixpath.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ def realpath(filename, *, strict=False):
continue
if name == pardir:
# parent dir
path = path[:path.rfind(sep)] or sep
path = path[:path.rindex(sep)] or sep
continue
if path == sep:
newpath = path + name
Expand Down