def maybebool(value):
if isinstance(value, six.string_types) and value.lower() in booly:<EOL><INDENT>return asbool(value)  <EOL><DEDENT>return value<EOL>
If `value` is a string type, attempts to convert it to a boolean
if it looks like it might be one, otherwise returns the value
unchanged. The difference between this and
:func:`pyramid.settings.asbool` is how non-bools are handled: this
returns the original value, whereas `asbool` returns False.