Lines Matching defs:fail
52 def fail(self, msg, lineno=None, exc=TemplateSyntaxError):
90 self.fail(' '.join(message), lineno)
93 """Called if the parser encounters an unknown tag. Tries to fail
125 self.fail('tag name expected', token.lineno)
140 # from the stack so that the unknown tag fail function can
264 self.fail('Block names in Jinja have to be valid Python '
326 self.fail('names starting with an underline can not '
354 self.fail('non-default argument follows default argument')
368 self.fail('expected call', node.lineno)
422 self.fail('can\'t assign to %r' % target.__class__.
583 self.fail("unexpected '%s'" % describe_token(token), token.lineno)
636 self.fail('Expected an expression, got \'%s\'' %
705 self.fail('expected name or number', attr_token.lineno)
720 self.fail('expected subscript expression', self.lineno)
762 self.fail('invalid syntax for function call expression',
841 self.fail('You cannot chain multiple tests with is')