From 325623e70b5bebba30138f6c366c1c72c33cf906 Mon Sep 17 00:00:00 2001 From: san7890 Date: Fri, 15 Mar 2024 17:52:42 -0600 Subject: [PATCH] uses `==` --- tools/od_annotator/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/od_annotator/__main__.py b/tools/od_annotator/__main__.py index 3b295f4667e76..e172203de0e2d 100644 --- a/tools/od_annotator/__main__.py +++ b/tools/od_annotator/__main__.py @@ -27,7 +27,7 @@ def annotate(raw_output): print("OpenDream Code Annotations:") for annotation in re.finditer(annotation_regex, raw_output): - if annotation['errornumber'] is "0000" and annotation['message'] is "Unimplemented proc & var warnings are currently suppressed": + if annotation['errornumber'] == "0000" and annotation['message'] == "Unimplemented proc & var warnings are currently suppressed": continue # snowflake case, we do need to care about this and it does print in the raw_output earlier but it's a nothingburger to actually annotate and it happens every run for the time being error_string = f"{annotation['errorcode']}: {annotation['message']}"