Skip to content

Commit

Permalink
Renamed variable to a better name
Browse files Browse the repository at this point in the history
  • Loading branch information
bpepple committed Oct 7, 2023
1 parent ac73b3b commit 0a71fc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions metrontagger/filerenamer.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ def replace_token(self: "FileRenamer", text: str, value: Optional[str], token: s
"""Method to replace a value with another value"""

# helper func
def is_token(word: str) -> bool:
return word[0] == "%" and word.endswith("%")
def is_token(txt: str) -> bool:
return txt[0] == "%" and txt.endswith("%")

if value is not None:
return text.replace(token, str(value))
Expand Down

0 comments on commit 0a71fc0

Please sign in to comment.