summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/bncompleter.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/python/bncompleter.py b/python/bncompleter.py
index a23f6007..6f349ee1 100644
--- a/python/bncompleter.py
+++ b/python/bncompleter.py
@@ -195,11 +195,10 @@ class Completer:
noprefix = None
while True:
for word in words:
- if (word[:n] == attr and
- not (noprefix and word[:n+1] == noprefix)):
+ if (word[:n] == attr and not (noprefix and word[:n+1] == noprefix)):
match = "%s.%s" % (expr, word)
try:
- val = getattr_static(thisobject, word)
+ val = inspect.getattr_static(thisobject, word)
except Exception:
pass # Include even if attribute not set
else: