@contextfunction
def modules_header_block(context):
    "Modules header block"
    request = context['request']
    modules, active = _get_modules(request)

    for module in modules:
        module.title = _(module.title)

    response_format = 'html'
    if context in 'response_format':
        response_format = context['response_format']

    return Markup(render_to_string('core/tags/modules_header_block',
                                   {'modules': modules,
                                    'active': active,
                                    'request': request},
                                   response_format=response_format))
dataset/ETHPy150Open treeio/treeio/treeio/core/templatetags/modules.py/modules_header_block/swapped operands of `in`