Fix bug #345 reported by David Bolen <db3l@fitlinxx.com>:

getatime() returned the mtime instead of the atime.
Similar to an old bug in posixpath.py.
This commit is contained in:
Fred Drake 2000-07-01 06:36:51 +00:00
parent d95f4e1a0d
commit 162bd855a6
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,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?