Skip to content

Commit f6fbd53

Browse files
committed
replace str.format with f-string
1 parent c758c63 commit f6fbd53

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

textile/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,8 @@ def parse(self, text, rel=None, sanitize=False):
241241
text = self.block(text)
242242
else:
243243
self.blocktag_allowlist = set(['bq', 'p', 'br', 'bc', 'notextile',
244-
'pre', 'h[1-6]', 'fn{0}+'.format(
245-
regex_snippets['digit']), '###'])
244+
'pre', 'h[1-6]',
245+
f'fn{regex_snippets['digit']}+', '###'])
246246
text = self.block(text)
247247
text = self.placeNoteLists(text)
248248
else:

0 commit comments

Comments
 (0)