diff options
| author | Chris McDonough <chrism@agendaless.com> | 2010-08-31 13:13:46 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2010-08-31 13:13:46 +0000 |
| commit | 2d4f61826a0ebc5330b869713abf7a36a69c0e6a (patch) | |
| tree | 15ab99d60d0fadc5a8824db16934dd744ab6053e /repoze/bfg/decorator.py | |
| parent | 211c300c104313796b1d298e3d95db2d5adaf848 (diff) | |
| download | pyramid-2d4f61826a0ebc5330b869713abf7a36a69c0e6a.tar.gz pyramid-2d4f61826a0ebc5330b869713abf7a36a69c0e6a.tar.bz2 pyramid-2d4f61826a0ebc5330b869713abf7a36a69c0e6a.zip | |
- The reify decorator now maintains the docstring of the function it
wraps.
Diffstat (limited to 'repoze/bfg/decorator.py')
| -rw-r--r-- | repoze/bfg/decorator.py | 4 |
1 files changed, 4 insertions, 0 deletions
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: |
