[Zope-Checkins] SVN: Zope/trunk/src/Products/ZCatalog/plan.py More standard names
Hanno Schlichting
hannosch at hannosch.eu
Sun Aug 1 18:35:08 EDT 2010
Log message for revision 115362:
More standard names
Changed:
U Zope/trunk/src/Products/ZCatalog/plan.py
-=-
Modified: Zope/trunk/src/Products/ZCatalog/plan.py
===================================================================
--- Zope/trunk/src/Products/ZCatalog/plan.py 2010-08-01 22:34:13 UTC (rev 115361)
+++ Zope/trunk/src/Products/ZCatalog/plan.py 2010-08-01 22:35:08 UTC (rev 115362)
@@ -28,11 +28,11 @@
class ThreadDict(object):
@classmethod
- def get_entry(cls, key):
+ def get(cls, key):
return cls.value.get(key, None)
@classmethod
- def set_entry(cls, key, value):
+ def set(cls, key, value):
with cls.lock:
cls.value[key] = value
@@ -164,7 +164,7 @@
self.duration = None
def plan(self):
- benchmark = PriorityMap.get_entry(self.key)
+ benchmark = PriorityMap.get(self.key)
if not benchmark:
return None
@@ -210,7 +210,7 @@
def stop(self):
self.end_time = time.time()
self.duration = self.end_time - self.start_time
- PriorityMap.set_entry(self.key, self.benchmark)
+ PriorityMap.set(self.key, self.benchmark)
self.log()
def log(self):
More information about the Zope-Checkins
mailing list