diff options
author | Guido van Rossum <guido@python.org> | 2000-02-24 02:26:51 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-02-24 02:26:51 (GMT) |
commit | 9811861e3c31f2cb9d04853460408c4fea3d6f1b (patch) | |
tree | 1b5e4e61966000619fd573eb488297ec47e6b54a | |
parent | 19ce91be92a31f4c24c0c5a88c568ae3b31f8fc6 (diff) | |
download | cpython-9811861e3c31f2cb9d04853460408c4fea3d6f1b.zip cpython-9811861e3c31f2cb9d04853460408c4fea3d6f1b.tar.gz cpython-9811861e3c31f2cb9d04853460408c4fea3d6f1b.tar.bz2 |
Mark Favas discovered this: getatime() accidentally returned the MTIME!
This fixes PR#211.
-rw-r--r-- | Lib/posixpath.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/posixpath.py b/Lib/posixpath.py index 090f245..792a985 100644 --- a/Lib/posixpath.py +++ b/Lib/posixpath.py @@ -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? |