]> git.ipfire.org Git - thirdparty/tornado.git/commit
A different approach to template stack traces:
authorBen Darnell <ben@bendarnell.com>
Wed, 7 Dec 2011 08:36:33 +0000 (00:36 -0800)
committerBen Darnell <ben@bendarnell.com>
Wed, 7 Dec 2011 09:26:02 +0000 (01:26 -0800)
commit597f70b31815f64ca382089b012d9eb0277e6cc1
tree8ca742196d7e77d70d99f5088fe9f9546f2c50f4
parent45ca697f5d18fad3fd26641b14422f54b236e0a8
A different approach to template stack traces:

Include the template source line as a comment in the generated code,
and add the magic necessary for python's normal stack traces to print
the (generated) source.
tornado/template.py
tornado/test/template_test.py
tornado/testing.py
tornado/util.py