0

fixed error handling code. Now more robust against corrupt chunks!

This commit is contained in:
Andrew Brown
2012-03-18 13:52:59 -04:00
parent e9cf747513
commit ff0f4fe46e
3 changed files with 22 additions and 19 deletions

View File

@@ -127,7 +127,8 @@ class LRUCache(object):
def __delitem__(self, key):
# Used to flush the cache of this key
link = self.cache[key]
cache = self.cache
link = cache[key]
del cache[key]
link.left.right = link.right
link.right.left = link.left