mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Mark Favas discovered this: getatime() accidentally returned the MTIME!
This fixes PR#211.
This commit is contained in:
parent
19ce91be92
commit
9811861e3c
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue