summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBarney Gale <barney.gale@gmail.com>2020-04-17 17:47:27 (GMT)
committerGitHub <noreply@github.com>2020-04-17 17:47:27 (GMT)
commit5b1d9184bb0e34391637c06bc7651fb6de8a6240 (patch)
tree79bfc97d04c8f6d41d28a77209f277fbbac00dfb
parentc746c4f353510a17683a49ed7f90ffaae664ff7b (diff)
downloadcpython-5b1d9184bb0e34391637c06bc7651fb6de8a6240.zip
cpython-5b1d9184bb0e34391637c06bc7651fb6de8a6240.tar.gz
cpython-5b1d9184bb0e34391637c06bc7651fb6de8a6240.tar.bz2
bpo-39894: Route calls from pathlib.Path.samefile() to os.stat() via the path accessor (GH-18836)
-rw-r--r--Lib/pathlib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pathlib.py b/Lib/pathlib.py
index d3e89df..88ebe03 100644
--- a/Lib/pathlib.py
+++ b/Lib/pathlib.py
@@ -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):