Skip to content

Commit

Permalink
bpo-30974: Change os.path.samefile docstring to match docs (pythonGH-…
Browse files Browse the repository at this point in the history
  • Loading branch information
timofurrer authored and zooba committed Aug 2, 2019
1 parent 7ea9a85 commit 8e568ef
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Lib/genericpath.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,11 @@ def samestat(s1, s2):

# Are two filenames really pointing to the same file?
def samefile(f1, f2):
"""Test whether two pathnames reference the same actual file"""
"""Test whether two pathnames reference the same actual file or directory
This is determined by the device number and i-node number and
raises an exception if an os.stat() call on either pathname fails.
"""
s1 = os.stat(f1)
s2 = os.stat(f2)
return samestat(s1, s2)
Expand Down

0 comments on commit 8e568ef

Please sign in to comment.