Issue #25417: Fix typo in Path.samefile() docstring
authorBerker Peksag <berker.peksag@gmail.com>
Wed, 21 Oct 2015 17:10:24 +0000 (20:10 +0300)
committerBerker Peksag <berker.peksag@gmail.com>
Wed, 21 Oct 2015 17:10:24 +0000 (20:10 +0300)
Reported by Antony Lee.

Lib/pathlib.py

index 01e66a0970b07400618359daa106f3a64cf5569f..4e219182e79df4cb603197b57d5cf26f76fcd7ab 100644 (file)
@@ -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: