Skip to content

Commit

Permalink
Use f-strings wherever possible (codespell-project#3102)
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriPapadopoulos authored Sep 30, 2023
1 parent 9898841 commit 6e41aba
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(rf"\b{word}\b", fixword, lines[i])
fixed_words.add(word)
continue

Expand Down

0 comments on commit 6e41aba

Please sign in to comment.