summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-07-01 06:36:51 (GMT)
committerFred Drake <fdrake@acm.org>2000-07-01 06:36:51 (GMT)
commit162bd855a631ed66f83ff3ed76ae1533de033298 (patch)
tree4e805dbf10d96efab6244175f67d4c03ee4dcbc1 /Lib
parentd95f4e1a0dedd705519400073981c82569d95ec5 (diff)
downloadcpython-162bd855a631ed66f83ff3ed76ae1533de033298.zip
cpython-162bd855a631ed66f83ff3ed76ae1533de033298.tar.gz
cpython-162bd855a631ed66f83ff3ed76ae1533de033298.tar.bz2
Fix bug #345 reported by David Bolen <db3l@fitlinxx.com>:
getatime() returned the mtime instead of the atime. Similar to an old bug in posixpath.py.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/ntpath.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/ntpath.py b/Lib/ntpath.py
index 51e60a2..23b7ce3 100644
--- a/Lib/ntpath.py
+++ b/Lib/ntpath.py
@@ -183,7 +183,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?