From 11b1900b93e40a34cbea0cbf67159b18dd07ed39 Mon Sep 17 00:00:00 2001 From: Jordan Date: Wed, 4 Nov 2020 17:30:04 -0500 Subject: Update bncompleter.py add missing module on inspect.getattr_static and small readability cleanup --- python/bncompleter.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'python') 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: -- cgit v1.3.1