From e93dd027bd70facca4243246d6e8f7eb4a20eb0b Mon Sep 17 00:00:00 2001 From: Theron Luhn Date: Wed, 17 Feb 2021 13:29:17 -0800 Subject: Fix reify so Sphinx recognizes it as an attribute. --- src/pyramid/decorator.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src') 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: -- cgit v1.2.3