[Python-checkins] cpython (3.5): Issue #25417: Fix typo in Path.samefile() docstring

berker.peksag python-checkins at python.org
Wed Oct 21 13:10:28 EDT 2015


https://hg.python.org/cpython/rev/7d65be20e0d8
changeset:   98819:7d65be20e0d8
branch:      3.5
parent:      98817:4bbc2af93b52
user:        Berker Peksag <berker.peksag at gmail.com>
date:        Wed Oct 21 20:10:24 2015 +0300
summary:
  Issue #25417: Fix typo in Path.samefile() docstring

Reported by Antony Lee.

files:
  Lib/pathlib.py |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Lib/pathlib.py b/Lib/pathlib.py
--- a/Lib/pathlib.py
+++ b/Lib/pathlib.py
@@ -1017,8 +1017,8 @@
         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:

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list