Skip to content

Commit

Permalink
apply lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Jul 6, 2023
1 parent de8105e commit 818d222
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/onnx_web/server/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 818d222

Please sign in to comment.