From 0a71fc076a35ac53b7d52c3c7872c930090216b5 Mon Sep 17 00:00:00 2001 From: Brian Pepple Date: Sat, 7 Oct 2023 15:20:58 -0400 Subject: [PATCH] Renamed variable to a better name --- metrontagger/filerenamer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/metrontagger/filerenamer.py b/metrontagger/filerenamer.py index 166db6b..b7971c0 100644 --- a/metrontagger/filerenamer.py +++ b/metrontagger/filerenamer.py @@ -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))