[Checkins] SVN: Zope3/trunk/src/zope/cachedescriptors/property.py whitespaces and coding style fixes

Christian Zagrodnick cz at gocept.com
Tue Feb 20 04:21:13 EST 2007


Log message for revision 72701:
  whitespaces and coding style fixes

Changed:
  U   Zope3/trunk/src/zope/cachedescriptors/property.py

-=-
Modified: Zope3/trunk/src/zope/cachedescriptors/property.py
===================================================================
--- Zope3/trunk/src/zope/cachedescriptors/property.py	2007-02-20 08:56:36 UTC (rev 72700)
+++ Zope3/trunk/src/zope/cachedescriptors/property.py	2007-02-20 09:21:12 UTC (rev 72701)
@@ -15,10 +15,12 @@
 
 $Id$
 """
+
 ncaches = 0l
 
+
 class CachedProperty(object):
-    """Cached Properties
+    """Cached Properties.
     """
 
     def __init__(self, func, *names):
@@ -42,18 +44,18 @@
             if key == getattr(inst, key_name, self):
                 # Cache is still good!
                 return value
-            
+
         # We need to compute and cache the value
 
         value = func(inst)
         setattr(inst, key_name, key)
         setattr(inst, value_name, value)
-        
+
         return value
 
 
 class Lazy(object):
-    """Lazy Attributes
+    """Lazy Attributes.
     """
 
     def __init__(self, func, name=None):
@@ -68,9 +70,10 @@
         func, name = self.data
         value = func(inst)
         inst.__dict__[name] = value
-        
+
         return value
 
+
 class readproperty(object):
 
     def __init__(self, func):
@@ -82,4 +85,3 @@
 
         func = self.func
         return func(inst)
-    



More information about the Checkins mailing list