From: Berker Peksag Date: Wed, 21 Oct 2015 17:10:24 +0000 (+0300) Subject: Issue #25417: Fix typo in Path.samefile() docstring X-Git-Tag: v3.5.1rc1~138 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=267597f087084283b5ad052d38cee9055d1acada;p=thirdparty%2FPython%2Fcpython.git Issue #25417: Fix typo in Path.samefile() docstring Reported by Antony Lee. --- diff --git a/Lib/pathlib.py b/Lib/pathlib.py index 01e66a0970b0..4e219182e79d 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: