From 5b1d9184bb0e34391637c06bc7651fb6de8a6240 Mon Sep 17 00:00:00 2001 From: Barney Gale Date: Fri, 17 Apr 2020 18:47:27 +0100 Subject: bpo-39894: Route calls from pathlib.Path.samefile() to os.stat() via the path accessor (GH-18836) --- Lib/pathlib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- cgit v0.12