summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2020-01-18 13:41:55 -0600
committerMichael Merickel <michael@merickel.org>2020-01-18 13:41:55 -0600
commit9b83a51946c7125163ef80c8431630aef4656bbc (patch)
tree909131df46e6586e38080d984eb2bcdf2e00c6e3 /src
parentf11909eacda4c0bf325bc1035873c53f144c094f (diff)
downloadpyramid-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.py2
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: