Skip to content
Myr

fixed typo in parser.py that caused a broken traceback on syntax errors

Before adoption: this commit came in with the history the project adopted, so no landing records it.

--HG-- branch : trunk

authored by Armin Ronacher · committed by Armin Ronacher · parent fa7f9ea · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:jinja/parser.py+1 added-1 removed
1106 unmodified lines
1107 else:1108 assert False, "unexpected token %r" % self.stream.current11091110 if test is not None:1111 msg = isinstance(test, StateTest) and ': ' + test.message or ''1111 msg = isinstance(test, StateTest) and ': ' + test.msg or ''1112 raise TemplateSyntaxError('unexpected end of stream' + msg,1113 self.stream.lineno, self.filename)11141115 return assemble_list()
57 unmodified lines