projects
/
jinja2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa7f9ea
)
fixed typo in parser.py that caused a broken traceback on syntax errors
author
Armin Ronacher
<armin.ronacher@active-4.com>
Sat, 22 Sep 2007 10:19:24 +0000
(12:19 +0200)
committer
Armin Ronacher
<armin.ronacher@active-4.com>
Sat, 22 Sep 2007 10:19:24 +0000
(12:19 +0200)
--HG--
branch : trunk
jinja/parser.py
patch
|
blob
|
history
diff --git
a/jinja/parser.py
b/jinja/parser.py
index 5702f6feadf4e174c4b95b7120b9926074dc9fbe..bc2960cea4362b97c77373fd9ad64cc16cdbb7e0 100644
(file)
--- a/
jinja/parser.py
+++ b/
jinja/parser.py
@@
-1108,7
+1108,7
@@
class Parser(object):
assert False, "unexpected token %r" % self.stream.current
if test is not None:
- msg = isinstance(test, StateTest) and ': ' + test.m
essage
or ''
+ msg = isinstance(test, StateTest) and ': ' + test.m
sg
or ''
raise TemplateSyntaxError('unexpected end of stream' + msg,
self.stream.lineno, self.filename)