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

View file

@ -143,7 +143,7 @@ def getmtime(filename):
def getatime(filename): def getatime(filename):
"""Return the last access time of a file, reported by os.stat().""" """Return the last access time of a file, reported by os.stat()."""
st = os.stat(filename) st = os.stat(filename)
return st[stat.ST_MTIME] return st[stat.ST_ATIME]
# Is a path a symbolic link? # Is a path a symbolic link?