Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(24)  |  Call(22)  |  Derive(0)  |  Import(2)

        def convert_to_boolean(string_or_boolean):
    if isinstance(string_or_boolean, bool):
        return string_or_boolean
    if isinstance(string_or_boolean, basestring):
        return bool(TRUE_RE.match(string_or_boolean))