def parse_widget_name(widget):
    '''
    Parse a alias:block_name string into separate parts.
    '''
    try:
        alias, block_name = widget.split(':', 1)
    except ValueError:
        raise template.TemplateSyntaxError(
            widget % 'widget name must be "alias:block_name" - %s'
        )

    return alias, block_name
dataset/ETHPy150Open funkybob/django-sniplates/sniplates/templatetags/sniplates.py/parse_widget_name/swapped operands of `%`