def extend_nodelist(self, nodelist, node, token):
        if node.must_be_first and nodelist:
            try:
                if nodelist.contains_nontext:
                    raise AttributeError
            except AttributeError:
                raise TemplateSyntaxError(node % "%r must be the first tag in the template.")
        if isinstance(nodelist, NodeList) and not isinstance(node, TextNode):
            nodelist.contains_nontext = True
        nodelist.append(node)
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.3/django/template/base.py/Parser.extend_nodelist/swapped operands of `%`