[Python-checkins] CVS: python/dist/src/Lib ntpath.py,1.23,1.24

Fred L. Drake python-dev@python.org
Fri, 30 Jun 2000 23:36:53 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory slayer.i.sourceforge.net:/tmp/cvs-serv5358/Lib

Modified Files:
	ntpath.py 
Log Message:

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.


Index: ntpath.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/ntpath.py,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -r1.23 -r1.24
*** ntpath.py	2000/02/17 17:30:40	1.23
--- ntpath.py	2000/07/01 06:36:51	1.24
***************
*** 184,188 ****
      """Return the last access time of a file, reported by os.stat()"""
      st = os.stat(filename)
!     return st[stat.ST_MTIME]
  
  
--- 184,188 ----
      """Return the last access time of a file, reported by os.stat()"""
      st = os.stat(filename)
!     return st[stat.ST_ATIME]