From 6355c16d3623921cbecb156c23349b8a6fe32827 Mon Sep 17 00:00:00 2001 From: Ronald Oussoren Date: Fri, 6 May 2011 17:11:07 +0200 Subject: ntpath.samefile fails to detect that "A.TXT" and "a.txt" refer to the same file on Windows XP. Noticed while researching a buildbot failure due to a patch for issue #10684. --- Lib/ntpath.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/ntpath.py') diff --git a/Lib/ntpath.py b/Lib/ntpath.py index 419342d0c1..ec8a7ab237 100644 --- a/Lib/ntpath.py +++ b/Lib/ntpath.py @@ -654,7 +654,7 @@ except (AttributeError, ImportError): # Non-Windows operating systems fake this method with an XP # approximation. def _getfinalpathname(f): - return abspath(f) + return normcase(abspath(f)) def samefile(f1, f2): "Test whether two pathnames reference the same actual file" -- cgit v1.2.1