3527: People View sometimes skips items because of LRU key error

svn: r14103
This commit is contained in:
Doug Blank 2010-01-21 01:55:48 +00:00
parent 97c058af9b
commit fdfb1b48b0

View File

@ -75,7 +75,8 @@ class LRU(object):
lnk.next.prev = None lnk.next.prev = None
self.first = lnk.next self.first = lnk.next
lnk.next = None lnk.next = None
del self.data[lnk.value[0]] if lnk.value[0] in self.data:
del self.data[lnk.value[0]]
del lnk del lnk
def __delitem__(self, obj): def __delitem__(self, obj):