summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Peuch <cortex@worlddomination.be>2021-02-27 00:59:45 +0100
committerLaurent Peuch <cortex@worlddomination.be>2021-02-27 00:59:45 +0100
commit26e67cfaefacd5c3742b5b6502f3727e97b62e37 (patch)
tree65f040087157985f0556e0bc445ddfb955ca652c /src
parentea3050858e4542fc12a3208d9a142eec8b0706cf (diff)
downloadpyramid-26e67cfaefacd5c3742b5b6502f3727e97b62e37.tar.gz
pyramid-26e67cfaefacd5c3742b5b6502f3727e97b62e37.tar.bz2
pyramid-26e67cfaefacd5c3742b5b6502f3727e97b62e37.zip
in reify also copy wrapped function __name__
Diffstat (limited to 'src')
-rw-r--r--src/pyramid/decorator.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pyramid/decorator.py b/src/pyramid/decorator.py
index 3215b1b38..9b8d10618 100644
--- a/src/pyramid/decorator.py
+++ b/src/pyramid/decorator.py
@@ -32,6 +32,7 @@ class reify:
def __init__(self, wrapped):
self.wrapped = wrapped
+ self.__name__ = wrapped.__name__
self.__doc__ = wrapped.__doc__
def __get__(self, inst, objtype=None):