ruff: Fix SIM201 Use … != … instead of not … == ….

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2023-01-17 21:30:35 -05:00
committed by Tim Abbott
parent 25346bde98
commit 7a7513f6e0
6 changed files with 8 additions and 9 deletions

View File

@@ -26,7 +26,7 @@ def nagios_from_file(results_file: str, max_time_diff: int = 60 * 2) -> Tuple[in
else:
pieces = data.split("|")
if not len(pieces) == 4:
if len(pieces) != 4:
state = "UNKNOWN"
ret = 3
data = "Results file malformed"