@classmethod
    def handle_token(cls, parser, token):
        bits = token.split_contents()
        if len(bits) == 3 and bits[1] == "as":
            return cls(bits[2])
        elif len(bits) == 4 and bits[2] == "as":
            return cls(bits[3], bits[1])
        else:
            raise template.TemplateSyntaxError(bits[0] % "%r takes 'as var' or 'level as var'")
dataset/ETHPy150Open pinax/symposion/symposion/sponsorship/templatetags/sponsorship_tags.py/SponsorsNode.handle_token/swapped operands of `%`