diff options
| author | Tres Seaver <tseaver@palladion.com> | 2016-04-23 08:28:01 -0400 |
|---|---|---|
| committer | Tres Seaver <tseaver@palladion.com> | 2016-04-23 08:28:01 -0400 |
| commit | 58b8798dc4d77d296c5be28609545b646555ee00 (patch) | |
| tree | 20cef5e18b13b19d473b1db0f030eab49f20beba | |
| parent | 7f70ac6e43e8c7f930b819714ec6cf43e7f523b0 (diff) | |
| parent | 4509b306114d8de13e1b90d46829286f7dbb30f3 (diff) | |
| download | pyramid-58b8798dc4d77d296c5be28609545b646555ee00.tar.gz pyramid-58b8798dc4d77d296c5be28609545b646555ee00.tar.bz2 pyramid-58b8798dc4d77d296c5be28609545b646555ee00.zip | |
Merge pull request #2523 from int3l/master
import/docstring adjustments in decorator module
| -rw-r--r-- | pyramid/decorator.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pyramid/decorator.py b/pyramid/decorator.py index df30c5e10..72c8b3800 100644 --- a/pyramid/decorator.py +++ b/pyramid/decorator.py @@ -1,4 +1,4 @@ -import functools +from functools import update_wrapper class reify(object): @@ -26,10 +26,14 @@ class reify(object): >>> f.jammy 1 >>> # jammy func not called the second time; it replaced itself with 1 + >>> # Note: reassignment is possible + >>> f.jammy = 2 + >>> f.jammy + 2 """ def __init__(self, wrapped): self.wrapped = wrapped - functools.update_wrapper(self, wrapped) + update_wrapper(self, wrapped) def __get__(self, inst, objtype=None): if inst is None: |
