]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-39894: Route calls from pathlib.Path.samefile() to os.stat() via the path accesso...
authorBarney Gale <barney.gale@gmail.com>
Fri, 17 Apr 2020 17:47:27 +0000 (18:47 +0100)
committerGitHub <noreply@github.com>
Fri, 17 Apr 2020 17:47:27 +0000 (19:47 +0200)
Lib/pathlib.py

index d3e89dfbc88ac0b81bc44aa8d46379d8c33ee778..88ebe030c7ff73b0fd519b0fc2efad083dc7405c 100644 (file)
@@ -1131,7 +1131,7 @@ class Path(PurePath):
         try:
             other_st = other_path.stat()
         except AttributeError:
-            other_st = os.stat(other_path)
+            other_st = self._accessor.stat(other_path)
         return os.path.samestat(st, other_st)
 
     def iterdir(self):