Skip to content

Commit

Permalink
Always normalize path in abspath
Browse files Browse the repository at this point in the history
  • Loading branch information
naveen521kk committed Jun 21, 2023
1 parent d322984 commit bc28269
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/ntpath.py
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ def _abspath_fallback(path):
def abspath(path):
"""Return the absolute version of a path."""
try:
return _getfullpathname(normpath(path))
return normpath(_getfullpathname(normpath(path)))
except (OSError, ValueError):
return _abspath_fallback(path)

Expand Down

0 comments on commit bc28269

Please sign in to comment.