'Parse a boolean from a string.'

def parse_bool(self, bool_string):

    if (bool_string in ('True', True)):
        return True
    if (bool_string in ('False', False)):
        return False
    raise ValueError(('invalid    boolean:    ' + str(bool_string)))
