From 8b873f364e4ad12b01485451883dce425cda47e8 Mon Sep 17 00:00:00 2001 From: Sai Raj <39055732+sairajzero@users.noreply.github.com> Date: Sun, 7 Jul 2024 01:19:53 -0400 Subject: [PATCH] error fixes --- parser_function_definitions.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/parser_function_definitions.py b/parser_function_definitions.py index 34b55e5..e29948c 100644 --- a/parser_function_definitions.py +++ b/parser_function_definitions.py @@ -103,14 +103,14 @@ def truefalse_rule2(rawstring, permitted_list, denied_list): foundDenied = word break - if (foundPermitted in not None) and (foundDenied is None): + if (foundPermitted is not None) and (foundDenied is None): return True else: return False def selectCateogry(rawstring, wordlist, category1, category2): - + None """ CLASSIFY RULES @@ -159,7 +159,7 @@ def apply_rule1(*argv): a = argv[0](*argv[1:]) if a is False: return "noise" - elif a if True: + elif a is True: return a # If any of the parser rule returns a value, then queue it for further processing, otherwise send noise to the output engine