diff options
| author | Michael Merickel <michael@merickel.org> | 2020-01-18 13:41:55 -0600 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2020-01-18 13:41:55 -0600 |
| commit | 9b83a51946c7125163ef80c8431630aef4656bbc (patch) | |
| tree | 909131df46e6586e38080d984eb2bcdf2e00c6e3 /src | |
| parent | f11909eacda4c0bf325bc1035873c53f144c094f (diff) | |
| download | pyramid-9b83a51946c7125163ef80c8431630aef4656bbc.tar.gz pyramid-9b83a51946c7125163ef80c8431630aef4656bbc.tar.bz2 pyramid-9b83a51946c7125163ef80c8431630aef4656bbc.zip | |
use standard detection for data descriptors
Diffstat (limited to 'src')
| -rw-r--r-- | src/pyramid/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pyramid/util.py b/src/pyramid/util.py index 504516631..fb8608512 100644 --- a/src/pyramid/util.py +++ b/src/pyramid/util.py @@ -121,7 +121,7 @@ class InstancePropertyHelper(object): ) name = callable.__name__ name = get_callable_name(name) - is_data_descriptor = hasattr(callable, '__set__') + is_data_descriptor = inspect.isdatadescriptor(callable) if reify and is_data_descriptor: raise ValueError('cannot reify a data descriptor') if is_data_descriptor: |
