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