From f8fc4fa95d54f3f09ef0019665d4b55999528fa6 Mon Sep 17 00:00:00 2001 From: divious1 Date: Mon, 9 Nov 2020 11:10:10 -0500 Subject: [PATCH] fixing warning on comparisons --- bin/generate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/generate.py b/bin/generate.py index 0d9255e762..66ee9225b7 100644 --- a/bin/generate.py +++ b/bin/generate.py @@ -279,9 +279,9 @@ def generate_workbench_panels(response_tasks, stories, TEMPLATE_PATH, OUTPUT_PAT template = j2_env.get_template('panel.j2') file_path = "default/data/ui/panels/workbench_panel_" + response_file_name + ".xml" output_path = path.join(OUTPUT_PATH, file_path) - if response_task['search'].find(">") is not -1: + if response_task['search'].find(">") != -1: response_task['search']= response_task['search'].replace(">",">") - if response_task['search'].find("<") is not -1: + if response_task['search'].find("<") != -1: response_task['search']= response_task['search'].replace("<","<") output = template.render(search=response_task['search'])