def maybebool(value):
    if isinstance(value, six.string_types) and value.lower() in booly:
        return asbool(value)  # pragma: no cover
    return value
If `value` is a string type, attempts to convert it to a boolean
dataset/ETHPy150Open sontek/pyramid_webassets/pyramid_webassets/__init__.py/maybebool