[Zope3-checkins]
SVN: Zope3/trunk/src/zope/cachedescriptors/property.py
Removed unused code block
Dmitry Vasiliev
dima at hlabs.spb.ru
Mon Aug 16 05:07:16 EDT 2004
Log message for revision 27142:
Removed unused code block
Changed:
U Zope3/trunk/src/zope/cachedescriptors/property.py
-=-
Modified: Zope3/trunk/src/zope/cachedescriptors/property.py
===================================================================
--- Zope3/trunk/src/zope/cachedescriptors/property.py 2004-08-15 19:38:31 UTC (rev 27141)
+++ Zope3/trunk/src/zope/cachedescriptors/property.py 2004-08-16 09:07:16 UTC (rev 27142)
@@ -63,21 +63,12 @@
func, names, key_name, value_name = self.data
- if names:
- if len(names) == 1:
- key = getattr(inst, names[0])
- else:
- key = [getattr(inst, name) for name in names]
- else:
- key = 0
-
key = names and [getattr(inst, name) for name in names]
value = getattr(inst, value_name, self)
if value is not self:
# We have a cached value
- oldkey = getattr(inst, key_name, self)
- if key == oldkey:
+ if key == getattr(inst, key_name, self):
# Cache is still good!
return value
More information about the Zope3-Checkins
mailing list