summaryrefslogtreecommitdiffstats
path: root/Lib/macpath.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-07-01 10:52:49 (GMT)
committerGuido van Rossum <guido@python.org>2000-07-01 10:52:49 (GMT)
commit46d565111e6c7c3f84761e9025e7e933ad31c33f (patch)
tree7d1dc480acc5866848a7257c7dfbadec30c26399 /Lib/macpath.py
parent9e94afd18daec70460ff52b4a75bde31e60347b4 (diff)
downloadcpython-46d565111e6c7c3f84761e9025e7e933ad31c33f.zip
cpython-46d565111e6c7c3f84761e9025e7e933ad31c33f.tar.gz
cpython-46d565111e6c7c3f84761e9025e7e933ad31c33f.tar.bz2
getatime() returned the mtime instead of the atime.
Similar to an old bug in ntpath.py.
Diffstat (limited to 'Lib/macpath.py')
-rw-r--r--Lib/macpath.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/macpath.py b/Lib/macpath.py
index 3e36f79..464bdd0 100644
--- a/Lib/macpath.py
+++ b/Lib/macpath.py
@@ -114,7 +114,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[ST_MTIME]
+ return st[ST_ATIME]
def islink(s):