summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hellkamp <marc@gsites.de>2016-09-02 19:32:49 +0200
committerGitHub <noreply@github.com>2016-09-02 19:32:49 +0200
commit7e068f2e4ce61eb346215408159f399840aab11b (patch)
tree5b12863fddc292b81a1e9c38bdcc9bf2f80e340a
parent18bbebdb7e8f0fbc2ee2d7f8324c3596caf43caf (diff)
parent8ceb87be4d8f3f351b9a69f7daa5fac26c8aa4d8 (diff)
downloadbottle-7e068f2e4ce61eb346215408159f399840aab11b.tar.gz
Merge pull request #883 from oz123/update_cached_property
Tiny update to cached_property
-rw-r--r--bottle.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bottle.py b/bottle.py
index 548a6f0..5e225b7 100644
--- a/bottle.py
+++ b/bottle.py
@@ -244,7 +244,7 @@ class cached_property(object):
property. """
def __init__(self, func):
- self.__doc__ = getattr(func, '__doc__')
+ update_wrapper(self, func)
self.func = func
def __get__(self, obj, cls):
@@ -266,7 +266,7 @@ class lazy_attribute(object):
return value
###############################################################################
-# Exceptions and Events ########################################################
+# Exceptions and Events #######################################################
###############################################################################