Kaydet (Commit) 46d56511 authored tarafından Guido van Rossum's avatar Guido van Rossum

getatime() returned the mtime instead of the atime.

Similar to an old bug in ntpath.py.
üst 9e94afd1
......@@ -131,7 +131,7 @@ def getmtime(filename):
def getatime(filename):
"""Return the last access time of a file, reported by os.stat()."""
st = os.stat(filename)
return st[stat.ST_MTIME]
return st[stat.ST_ATIME]
def islink(path):
......
......@@ -114,7 +114,7 @@ def getmtime(filename):
def getatime(filename):
"""Return the last access time of a file, reported by os.stat()."""
st = os.stat(filename)
return st[ST_MTIME]
return st[ST_ATIME]
def islink(s):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment