Files
MINGW-packages/mingw-w64-python/0125-Always-normalize-path-in-abspath.patch
2023-10-03 09:04:31 +02:00

23 lines
753 B
Diff

From 41105965ff2b1f974e7d8e1e7ef1e1bcf7f150ae Mon Sep 17 00:00:00 2001
From: Naveen M K <naveen521kk@gmail.com>
Date: Tue, 20 Jun 2023 23:00:43 +0530
Subject: [PATCH 125/N] Always normalize path in abspath
---
Lib/ntpath.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Lib/ntpath.py b/Lib/ntpath.py
index a9eadef..7d5c3a5 100644
--- a/Lib/ntpath.py
+++ b/Lib/ntpath.py
@@ -582,7 +582,7 @@ else: # use native Windows method on Windows
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)