def parseBool(s):
l = s.lower()<EOL>if l in ("<STR_LIT:true>", "<STR_LIT:t>", "<STR_LIT:1>"):<EOL><INDENT>return True<EOL><DEDENT>if l in ("<STR_LIT:false>", "<STR_LIT:f>", "<STR_LIT:0>"):<EOL><INDENT>return False<EOL><DEDENT>raise Exception("<STR_LIT>" % s)<EOL>
String to boolean

:param s: (string)
:return: (bool)