@register.tag
def widget(parser, token):
    bits = token.split_contents()
    tag_name = bits.pop(0)

    try:
        widget = parser.compile_filter(bits.pop(0))
    except IndexError:
        raise template.TemplateSyntaxError(
            tag_name % '%s requires one positional argument'
        )

    asvar = pop_asvar(bits)

    kwargs = token_kwargs(bits, parser)
    if bits:
        raise template.TemplateSyntaxError(
            '%s accepts only one positional argument' % tag_name
        )

    return Widget(widget, kwargs, asvar)
dataset/ETHPy150Open funkybob/django-sniplates/sniplates/templatetags/sniplates.py/widget/swapped operands of `%`