mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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.
This commit is contained in:
parent
1c86b44506
commit
6355c16d36
2 changed files with 4 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue