summaryrefslogtreecommitdiff
path: root/Lib/pathlib.py
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2015-10-21 20:10:24 +0300
committerBerker Peksag <berker.peksag@gmail.com>2015-10-21 20:10:24 +0300
commit267597f087084283b5ad052d38cee9055d1acada (patch)
tree802abc46078b8dc3afbbebd7dd848c1d1043f09d /Lib/pathlib.py
parent4da71055e1aca0b9a047b5a3405cedf3c4c661f6 (diff)
downloadcpython-git-267597f087084283b5ad052d38cee9055d1acada.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: