From 2d4f61826a0ebc5330b869713abf7a36a69c0e6a Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Tue, 31 Aug 2010 13:13:46 +0000 Subject: - The reify decorator now maintains the docstring of the function it wraps. --- repoze/bfg/decorator.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'repoze/bfg/decorator.py') diff --git a/repoze/bfg/decorator.py b/repoze/bfg/decorator.py index d30a06658..98d7b36b5 100644 --- a/repoze/bfg/decorator.py +++ b/repoze/bfg/decorator.py @@ -6,6 +6,10 @@ class reify(object): def __init__(self, wrapped): self.wrapped = wrapped + try: + self.__doc__ = wrapped.__doc__ + except: # pragma: no cover + pass def __get__(self, inst, objtype=None): if inst is None: -- cgit v1.2.3