1
0
Fork 0

apply lint

This commit is contained in:
Sean Sube 2023-07-05 23:05:47 -05:00
parent de8105ec60
commit 818d222ff8
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
1 changed files with 2 additions and 2 deletions

View File

@ -462,8 +462,8 @@ def load_wildcards(server: ServerContext) -> None:
for file in wildcard_files:
with open(path.join(server.model_path, "wildcard", f"{file}.txt"), "r") as f:
lines = f.read().splitlines()
lines = [l.strip() for l in lines if not l.startswith("#")]
lines = [l for l in lines if len(l) > 0]
lines = [line.strip() for line in lines if not line.startswith("#")]
lines = [line for line in lines if len(line) > 0]
logger.debug("loading wildcards from %s: %s", file, lines)
wildcard_data[file] = lines