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

This fixes PR#211.
This commit is contained in:
Guido van Rossum 2000-02-24 02:26:51 +00:00
parent 19ce91be92
commit 9811861e3c
1 changed files with 1 additions and 1 deletions

View File

@ -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?