[Neo-report] r2480 vincent - /trunk/neo/client/mq.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Dec 9 13:54:25 CET 2010
Author: vincent
Date: Thu Dec 9 13:54:25 2010
New Revision: 2480
Log:
Make mq resilient to tuple keys.
Modified:
trunk/neo/client/mq.py
Modified: trunk/neo/client/mq.py
==============================================================================
--- trunk/neo/client/mq.py [iso-8859-1] (original)
+++ trunk/neo/client/mq.py [iso-8859-1] Thu Dec 9 13:54:25 2010
@@ -283,11 +283,10 @@ class MQ(object):
del self._cache_buffers[data.level][data.element]
self._evict(key)
return
- raise KeyError, "%s was not found in the cache" % key
+ raise KeyError, "%s was not found in the cache" % (key, )
__delitem__ = invalidate
-
# Here is a test.
if __name__ == '__main__':
import hotshot, hotshot.stats
More information about the Neo-report
mailing list