diff options
| author | Barney Gale <barney.gale@gmail.com> | 2020-04-17 18:47:27 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-17 19:47:27 +0200 |
| commit | 5b1d9184bb0e34391637c06bc7651fb6de8a6240 (patch) | |
| tree | 79bfc97d04c8f6d41d28a77209f277fbbac00dfb /Lib/pathlib.py | |
| parent | c746c4f353510a17683a49ed7f90ffaae664ff7b (diff) | |
| download | cpython-git-5b1d9184bb0e34391637c06bc7651fb6de8a6240.tar.gz | |
bpo-39894: Route calls from pathlib.Path.samefile() to os.stat() via the path accessor (GH-18836)
Diffstat (limited to 'Lib/pathlib.py')
| -rw-r--r-- | Lib/pathlib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pathlib.py b/Lib/pathlib.py index d3e89dfbc8..88ebe030c7 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): |
