From a1051bd5f2d8085b5b0997b6bf43bb9e122c2dc8 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Fri, 29 Dec 2017 03:29:08 +0100 Subject: [PATCH] Better display of descriptors --- jedi/evaluate/compiled/access.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jedi/evaluate/compiled/access.py b/jedi/evaluate/compiled/access.py index 0a27935b..89dbc02b 100644 --- a/jedi/evaluate/compiled/access.py +++ b/jedi/evaluate/compiled/access.py @@ -91,7 +91,7 @@ def safe_getattr(obj, name, default=_sentinel): raise return default else: - if is_get_descriptor and type(attr) in ALLOWED_DESCRIPTOR_ACCESS: + if type(attr) in ALLOWED_DESCRIPTOR_ACCESS: # In case of descriptors that have get methods we cannot return # it's value, because that would mean code execution. return getattr(obj, name)