summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2021-02-20 14:43:40 -0600
committerGitHub <noreply@github.com>2021-02-20 14:43:40 -0600
commitea3050858e4542fc12a3208d9a142eec8b0706cf (patch)
treee31a5d7fa12f509cef5ecb6feee94cf3d29cc4c2 /src
parent5b63fb8ecff82d448970b7e2d7b9dd078d4ed438 (diff)
parent24ea7860842f0d5ac366732f5921dde1e285cdf7 (diff)
downloadpyramid-ea3050858e4542fc12a3208d9a142eec8b0706cf.tar.gz
pyramid-ea3050858e4542fc12a3208d9a142eec8b0706cf.tar.bz2
pyramid-ea3050858e4542fc12a3208d9a142eec8b0706cf.zip
Merge pull request #3657 from luhn/reify-sphinx
Remove update_wrapper from reify
Diffstat (limited to 'src')
-rw-r--r--src/pyramid/decorator.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/pyramid/decorator.py b/src/pyramid/decorator.py
index 56c74c5b6..3215b1b38 100644
--- a/src/pyramid/decorator.py
+++ b/src/pyramid/decorator.py
@@ -1,6 +1,3 @@
-from functools import update_wrapper
-
-
class reify:
"""Use as a class method decorator. It operates almost exactly like the
Python ``@property`` decorator, but it puts the result of the method it
@@ -35,7 +32,7 @@ class reify:
def __init__(self, wrapped):
self.wrapped = wrapped
- update_wrapper(self, wrapped)
+ self.__doc__ = wrapped.__doc__
def __get__(self, inst, objtype=None):
if inst is None: