Skip to content

Commit

Permalink
Use f-string
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Jan 29, 2024
1 parent 50ad021 commit 76e95af
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bin/wcwidth-browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down

0 comments on commit 76e95af

Please sign in to comment.