Commits

Anonymous committed 1629ada

Fixed method prototypes

  • Participants
  • Parent commits abcf98c

Comments (0)

Files changed (1)

File gnocchi_forum/utils.py

     def __init__(self, get_func):
         self.get_func = get_func
 
-    def __get__(self, obj):
+    def __get__(self, obj, obj_type=None):
         if not hasattr(self, 'value'):
             self.value = self.get_func(obj)
         return self.value
 
+    def __set__(self, obj, value):
+        raise AttributeError, 'CachedProperty is read only.'