Parses a variety of strings (e.g. ‘true’ or ‘1’) to a boolean.
s¶ (str) – The string to parse
True if s is one of:
s
’true’ ’1’ ’t’ ’y’ ’yes’ ’on’
’true’
’1’
’t’
’y’
’yes’
’on’
bool