Commit 9811861e authored by Guido van Rossum's avatar Guido van Rossum

Mark Favas discovered this: getatime() accidentally returned the MTIME!

This fixes PR#211.
parent 19ce91be
......@@ -143,7 +143,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]
# Is a path a symbolic link?
......
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