Skip to content

Commit

Permalink
Use f-strings wherever possible
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriPapadopoulos committed Sep 30, 2023
1 parent 9898841 commit 78722fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codespell_lib/_codespell.py
Original file line number Diff line number Diff line change
Expand Up @@ -952,7 +952,7 @@ def parse_file(

if options.write_changes and fix:
changed = True
lines[i] = re.sub(r"\b%s\b" % word, fixword, lines[i])
lines[i] = re.sub(fr"\b{word}\b", fixword, lines[i])
fixed_words.add(word)
continue

Expand Down

0 comments on commit 78722fc

Please sign in to comment.