From 5a288649e8fcb999c11cca17ad0c1956f3ef8e11 Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Fri, 24 Sep 2021 09:20:23 -0400 Subject: Use more f-strings --- python/bncompleter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/bncompleter.py') diff --git a/python/bncompleter.py b/python/bncompleter.py index 330cf0d0..0063bf5f 100644 --- a/python/bncompleter.py +++ b/python/bncompleter.py @@ -197,7 +197,7 @@ class Completer: while True: for word in words: if (word[:n] == attr and not (noprefix and word[:n+1] == noprefix)): - match = "%s.%s" % (expr, word) + match = f"{expr}.{word}" try: val = inspect.getattr_static(thisobject, word) except Exception: -- cgit v1.3.1