[Python-checkins] python/dist/src/Lib dircache.py,1.11,1.12

loewis at users.sourceforge.net loewis at users.sourceforge.net
Sat Sep 20 11:52:23 EDT 2003


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1:/tmp/cvs-serv29956/Lib
Modified Files:
	dircache.py 
Log Message:
Patch #707167: Pass dircache exceptions to the caller. Fixes #682813.
Not backported because of behaviour change.
Index: dircache.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/dircache.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** dircache.py	1 Jun 2002 19:51:15 -0000	1.11
--- dircache.py	20 Sep 2003 15:52:20 -0000	1.12
***************
*** 23,35 ****
 except KeyError:
 cached_mtime, list = -1, []
! try:
! mtime = os.stat(path).st_mtime
! except os.error:
! return []
 if mtime != cached_mtime:
! try:
! list = os.listdir(path)
! except os.error:
! return []
 list.sort()
 cache[path] = mtime, list
--- 23,29 ----
 except KeyError:
 cached_mtime, list = -1, []
! mtime = os.stat(path).st_mtime
 if mtime != cached_mtime:
! list = os.listdir(path)
 list.sort()
 cache[path] = mtime, list


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /