Commit ceddb0fd authored by Vincent Pelletier's avatar Vincent Pelletier

Make mq resilient to tuple keys.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2480 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 10937597
...@@ -283,11 +283,10 @@ class MQ(object): ...@@ -283,11 +283,10 @@ class MQ(object):
del self._cache_buffers[data.level][data.element] del self._cache_buffers[data.level][data.element]
self._evict(key) self._evict(key)
return return
raise KeyError, "%s was not found in the cache" % key raise KeyError, "%s was not found in the cache" % (key, )
__delitem__ = invalidate __delitem__ = invalidate
# Here is a test. # Here is a test.
if __name__ == '__main__': if __name__ == '__main__':
import hotshot, hotshot.stats import hotshot, hotshot.stats
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment