Kaydet (Commit) 162bd855 authored tarafından Fred Drake's avatar Fred Drake

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.
üst d95f4e1a
...@@ -183,7 +183,7 @@ def getmtime(filename): ...@@ -183,7 +183,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?
......
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