Skip to content

Commit

Permalink
replace str.format with f-string
Browse files Browse the repository at this point in the history
  • Loading branch information
ikirudennis committed Aug 9, 2024
1 parent c758c63 commit f6fbd53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions textile/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,8 @@ def parse(self, text, rel=None, sanitize=False):
text = self.block(text)
else:
self.blocktag_allowlist = set(['bq', 'p', 'br', 'bc', 'notextile',
'pre', 'h[1-6]', 'fn{0}+'.format(
regex_snippets['digit']), '###'])
'pre', 'h[1-6]',
f'fn{regex_snippets['digit']}+', '###'])
text = self.block(text)
text = self.placeNoteLists(text)
else:
Expand Down

0 comments on commit f6fbd53

Please sign in to comment.