From 76e95afffe15c0789f1912684c718f9d2d57b8bf Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Mon, 29 Jan 2024 16:13:32 +0200 Subject: [PATCH] Use f-string --- bin/wcwidth-browser.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/wcwidth-browser.py b/bin/wcwidth-browser.py index 8936f80..545f911 100755 --- a/bin/wcwidth-browser.py +++ b/bin/wcwidth-browser.py @@ -213,8 +213,7 @@ def head_item(self): """Text of a single column heading.""" delimiter = self.style.attr_minor(self.style.delimiter) hint = self.style.header_hint * self.wide - heading = ('{delimiter}{hint}{delimiter}' - .format(delimiter=delimiter, hint=hint)) + heading = f'{delimiter}{hint}{delimiter}' def alignment(*args): if self.style.alignment == 'right':