- software.remove_extras() is now cached
logger.debug("found='%s' - EXIT!", found)
return found
+@lru_cache
def remove_extras(software: str):
logger.debug("software[%s]='%s' - CALLED!", type(software), software)
if not isinstance(software, str):
if not isinstance(string, str):
raise ValueError(f"Parameter string[]='{type(string)}' is not of type 'str'")
elif string == "":
- raise ValueError("Parameter string is empty")
+ raise ValueError("Parameter 'string' is empty")
# All lower-case and strip spaces out + last dot
string = string.lower().strip().rstrip(".").replace("..", ".")