bpo-39894: Route calls from pathlib.Path.samefile() to os.stat() via the path accessor (GH-18836)
This commit is contained in:
parent
c746c4f353
commit
5b1d9184bb
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue