corrected a bug in LastfmBase.cachedProperty
parent
3bb7aca74f
commit
0b4e8f539d
|
@ -64,7 +64,8 @@ class LastfmBase(object):
|
|||
def wrapper(ob):
|
||||
cacheAttribute = getattr(ob, attributeName, None)
|
||||
if cacheAttribute is None:
|
||||
setattr(ob, attributeName, func(ob))
|
||||
cacheAttribute = func(ob)
|
||||
setattr(ob, attributeName, cacheAttribute)
|
||||
return cacheAttribute
|
||||
|
||||
return property(fget = wrapper, doc = func.__doc__)
|
||||
|
|
|
@ -533,7 +533,6 @@ from tag import Tag
|
|||
from track import Track
|
||||
|
||||
#TODO
|
||||
#extract self.__* property as decorator
|
||||
#write depaginations
|
||||
#write exceptions
|
||||
#argument type checking
|
||||
|
|
Loading…
Reference in New Issue