Thanks to visit codestin.com
Credit goes to github.com

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
Spacing
  • Loading branch information
barneygale committed Mar 31, 2024
commit 197c871edeec082fca9c152a8ddadf1c91bb8d6e
2 changes: 1 addition & 1 deletion Lib/posixpath.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,13 +477,13 @@ def realpath(filename, *, strict=False):
path = newpath
querying = False
continue

seen[newpath] = None # not resolved symlink
if target[:1] == sep:
path = sep
rest.append(newpath)
rest.append(None)
rest.extend(target.split(sep)[::-1])

return path


Expand Down