summaryrefslogtreecommitdiff
path: root/Lib/pathlib.py
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2015-10-21 20:10:44 +0300
committerBerker Peksag <berker.peksag@gmail.com>2015-10-21 20:10:44 +0300
commit085c25434add88fba6bc45e2df7a3a0581539ac9 (patch)
treec88471a66a17001992e560f407eee8b76bd8546b /Lib/pathlib.py
parent6eeca7d73ff090b8c1ce787372b918b4af77811d (diff)
parent267597f087084283b5ad052d38cee9055d1acada (diff)
downloadcpython-git-085c25434add88fba6bc45e2df7a3a0581539ac9.tar.gz
Issue #25417: Fix typo in Path.samefile() docstring
Reported by Antony Lee.
Diffstat (limited to 'Lib/pathlib.py')
-rw-r--r--Lib/pathlib.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/pathlib.py b/Lib/pathlib.py
index 01e66a0970..4e219182e7 100644
--- a/Lib/pathlib.py
+++ b/Lib/pathlib.py
@@ -1017,8 +1017,8 @@ class Path(PurePath):
return cls(cls()._flavour.gethomedir(None))
def samefile(self, other_path):
- """Return whether `other_file` is the same or not as this file.
- (as returned by os.path.samefile(file, other_file)).
+ """Return whether other_path is the same or not as this file.
+ (as returned by os.path.samefile()).
"""
st = self.stat()
try: