mirror of https://github.com/python/cpython.git
Mark Favas discovered this: getatime() accidentally returned the MTIME!
This fixes PR#211.
This commit is contained in:
parent
19ce91be92
commit
9811861e3c
|
@ -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?
|
||||
|
|
Loading…
Reference in New Issue