bpo-39894: Route calls from pathlib.Path.samefile() to os.stat() via the path accessor (GH-18836)

This commit is contained in:
Barney Gale 2020-04-17 18:47:27 +01:00 committed by GitHub
parent c746c4f353
commit 5b1d9184bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View 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):