diff options
| author | Theron Luhn <theron@luhn.com> | 2021-02-17 13:29:17 -0800 |
|---|---|---|
| committer | Theron Luhn <theron@luhn.com> | 2021-02-17 13:29:17 -0800 |
| commit | e93dd027bd70facca4243246d6e8f7eb4a20eb0b (patch) | |
| tree | 0845c8771fec821c33ae49882255349012a945f5 /src | |
| parent | d76903c58c5d0dfd8edc9de40b8ad2382d4f5634 (diff) | |
| download | pyramid-e93dd027bd70facca4243246d6e8f7eb4a20eb0b.tar.gz pyramid-e93dd027bd70facca4243246d6e8f7eb4a20eb0b.tar.bz2 pyramid-e93dd027bd70facca4243246d6e8f7eb4a20eb0b.zip | |
Fix reify so Sphinx recognizes it as an attribute.
Diffstat (limited to 'src')
| -rw-r--r-- | src/pyramid/decorator.py | 5 |
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: |
