From 842c6563457134b2c65129aefb714fa3bd632791 Mon Sep 17 00:00:00 2001 From: Ken Conley Date: Wed, 30 Sep 2009 21:26:01 +0000 Subject: [PATCH] elif --- core/roslib/src/roslib/msgs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/roslib/src/roslib/msgs.py b/core/roslib/src/roslib/msgs.py index 527f6034..0f01147f 100644 --- a/core/roslib/src/roslib/msgs.py +++ b/core/roslib/src/roslib/msgs.py @@ -409,7 +409,7 @@ def _convert_val(type_, val): if val > upper or val < lower: raise MsgSpecException("cannot coerce [%s] to %s (out of bounds)"%(val, type_)) return val - else if type == 'bool': + elif type == 'bool': # TODO: need to nail down constant spec for bool return True if eval(val) else False raise MsgSpecException("invalid constant type: [%s]"%type_)