Update of /cvsroot/freevo/freevo/src/util
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8667/src/util
Modified Files:
objectcache.py
Log Message:
fix strange crash
Index: objectcache.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/util/objectcache.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** objectcache.py 4 Feb 2004 17:20:24 -0000 1.5
--- objectcache.py 20 Apr 2004 17:11:21 -0000 1.6
***************
*** 11,14 ****
--- 11,17 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.6 2004/04/20 17:11:21 dischi
+ # fix strange crash
+ #
# Revision 1.5 2004/02/04 17:20:24 dischi
# fix crash when object is None
***************
*** 84,94 ****
key = unicode(key, config.LOCALE)
! if not key in self.cache:
return None
- del self.lru[self.lru.index(key)]
- self.lru.append(key)
- return self.cache[key]
-
def __setitem__(self, key, object):
--- 87,97 ----
key = unicode(key, config.LOCALE)
! try:
! del self.lru[self.lru.index(key)]
! self.lru.append(key)
! return self.cache[key]
! except:
return None
def __setitem__(self, key, object):
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog