diff options
| author | Jordan <jordan@psifertex.com> | 2020-11-04 17:30:04 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-04 17:30:04 -0500 |
| commit | 11b1900b93e40a34cbea0cbf67159b18dd07ed39 (patch) | |
| tree | 988464eb116132234626f615158b1263a9adee44 /python | |
| parent | b2d016d1a1eb7bf36d94b57af99cd627a065c173 (diff) | |
Update bncompleter.py
add missing module on inspect.getattr_static and small readability cleanup
Diffstat (limited to 'python')
| -rw-r--r-- | python/bncompleter.py | 5 |
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: |
