From 1727be598abde1383e625e8e679ed610ad5dfec6 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sat, 25 Jan 2020 00:48:57 -0800 Subject: [PATCH] Switch this formatter to fstring. --- search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/search.py b/search.py index e1bddd4..a326a12 100644 --- a/search.py +++ b/search.py @@ -164,7 +164,7 @@ def search( search_text = search_object result_text = search_object if line_numbers: - result_text = '%4d | %s' % (index+1, result_text) + result_text = f'{index+1:>4} | {result_text}' if not all_terms_match(search_text, terms, term_matches): continue