Author: justi9
Date: 2008-12-16 15:51:31 -0500 (Tue, 16 Dec 2008)
New Revision: 3013
Modified:
mgmt/trunk/mint/python/mint/cache.py
Log:
Restore use of the pending id set; it is indeed in use
Modified: mgmt/trunk/mint/python/mint/cache.py
===================================================================
--- mgmt/trunk/mint/python/mint/cache.py 2008-12-16 20:33:42 UTC (rev 3012)
+++ mgmt/trunk/mint/python/mint/cache.py 2008-12-16 20:51:31 UTC (rev 3013)
@@ -7,7 +7,10 @@
self.__dirty = False
def get(self, key):
- return self.__cache.get(key)
+ try:
+ return self.__cache[key]
+ except KeyError:
+ return self.__pending.get(key)
def set(self, key, value):
self.__pending[key] = value
Show replies by date