]> granicus.if.org Git - python/commitdiff
Mark Favas discovered this: getatime() accidentally returned the MTIME!
authorGuido van Rossum <guido@python.org>
Thu, 24 Feb 2000 02:26:51 +0000 (02:26 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 24 Feb 2000 02:26:51 +0000 (02:26 +0000)
This fixes PR#211.

Lib/posixpath.py

index 090f245eb63cb6ba656e81682b12feb504b899a9..792a9856d5d1f9c82e9283976a566394c5a2d06f 100644 (file)
@@ -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?