Commit 30dd671d authored by Yoshinori Okuji's avatar Yoshinori Okuji

Access self.value without calling getattr, as the attribute value must be always present.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29694 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0f599616
......@@ -69,7 +69,7 @@ class CacheEntry(object):
def getValue(self):
""" return cached value """
return getattr(self, 'value', None)
return self.value
def __len__(self):
"""return value size
......
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