[Python-checkins] CVS: python/dist/src/Lib macpath.py,1.21,1.22
Guido van Rossum
python-dev@python.org
Sat, 1 Jul 2000 03:52:30 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory slayer.i.sourceforge.net:/tmp/cvs-serv20572
Modified Files:
macpath.py
Log Message:
getatime() returned the mtime instead of the atime.
Similar to an old bug in ntpath.py.
Index: macpath.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/macpath.py,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -r1.21 -r1.22
*** macpath.py 2000年02月04日 15:10:33 1.21
--- macpath.py 2000年07月01日 10:52:26 1.22
***************
*** 115,119 ****
"""Return the last access time of a file, reported by os.stat()."""
st = os.stat(filename)
! return st[ST_MTIME]
--- 115,119 ----
"""Return the last access time of a file, reported by os.stat()."""
st = os.stat(filename)
! return st[ST_ATIME]