aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorGravatar rcoh <rcoh@mit.edu>2011-02-12 16:34:25 -0500
committerGravatar rcoh <rcoh@mit.edu>2011-02-12 16:34:25 -0500
commitcf1048df72b845ef7fefd5ec5709f7d1b2c4df79 (patch)
treea56781a9f7aabd1daf66f379138ff1a2c792b719 /util
parent4d62e1152241854ab864142d827d735d84405078 (diff)
Added some new tests to BehaviorQuerySystem.py which demonstrate how to use it. Fixed a bug in BQS.
Diffstat (limited to 'util')
-rw-r--r--util/BehaviorQuerySystem.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/BehaviorQuerySystem.py b/util/BehaviorQuerySystem.py
index 5399435..643b95c 100644
--- a/util/BehaviorQuerySystem.py
+++ b/util/BehaviorQuerySystem.py
@@ -16,7 +16,7 @@ def query(predicateList):
#want to do queries wrt: behavior itself, the behavior packet, the querying behavior
if isinstance(predicateList, types.FunctionType):
predicateList = [predicateList]
- elif not isinstance(prediateList, list):
+ elif not isinstance(predicateList, list):
raise Exception('Predicate list must be a function or list of functions')
global behaviorList, initialized
ret = []