Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
bpo-39894: Route calls from pathlib.Path.samefile() to os.stat() via …
…the path accessor
  • Loading branch information
barneygale committed Mar 8, 2020
commit 0c0d7c432249c96634e444d0f657048c0064d951
2 changes: 1 addition & 1 deletion Lib/pathlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1116,7 +1116,7 @@ def samefile(self, other_path):
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):
Expand Down