__author__ = 'Daniel Greenfeld'
__email__ = 'pydanny@gmail.com'
-__version__ = '0.1.2'
+__version__ = '0.1.4'
__license__ = 'BSD'
+import time
+
class cached_property(object):
""" A property that is only computed once per instance and then replaces
itself with an ordinary attribute. Deleting the attribute resets the
- property. """
+ property.
+
+ Source: https://github.com/bottlepy/bottle/commit/fa7733e075da0d790d809aa3d2f53071897e6f76
+ """
def __init__(self, func):
self.__doc__ = getattr(func, '__doc__')