Skip to content

Commit 9769e0c

Browse files
naveen521kklazka
authored andcommitted
Always normalize path in abspath
1 parent 780e392 commit 9769e0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/ntpath.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ def _abspath_fallback(path):
582582
def abspath(path):
583583
"""Return the absolute version of a path."""
584584
try:
585-
return _getfullpathname(normpath(path))
585+
return normpath(_getfullpathname(normpath(path)))
586586
except (OSError, ValueError):
587587
return _abspath_fallback(path)
588588

0 commit comments

Comments
 (0)