error fixes
This commit is contained in:
parent
37cee58465
commit
8b873f364e
@ -103,14 +103,14 @@ def truefalse_rule2(rawstring, permitted_list, denied_list):
|
|||||||
foundDenied = word
|
foundDenied = word
|
||||||
break
|
break
|
||||||
|
|
||||||
if (foundPermitted in not None) and (foundDenied is None):
|
if (foundPermitted is not None) and (foundDenied is None):
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
def selectCateogry(rawstring, wordlist, category1, category2):
|
def selectCateogry(rawstring, wordlist, category1, category2):
|
||||||
|
None
|
||||||
|
|
||||||
"""
|
"""
|
||||||
CLASSIFY RULES
|
CLASSIFY RULES
|
||||||
@ -159,7 +159,7 @@ def apply_rule1(*argv):
|
|||||||
a = argv[0](*argv[1:])
|
a = argv[0](*argv[1:])
|
||||||
if a is False:
|
if a is False:
|
||||||
return "noise"
|
return "noise"
|
||||||
elif a if True:
|
elif a is True:
|
||||||
return a
|
return a
|
||||||
|
|
||||||
# If any of the parser rule returns a value, then queue it for further processing, otherwise send noise to the output engine
|
# If any of the parser rule returns a value, then queue it for further processing, otherwise send noise to the output engine
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user