Skip to content
Myr

Fixed a bug in jinja2/debug (second time, forgot to merge and threw away changes -.-)

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 f93a0ef · Browse files · 1 file+6 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+6 added−1 removed

  • other:+6 added−1 removed

1 file+6 added−1 removed

modified:jinja2/debug.py+6 added-1 removed
182 unmodified lines
183 # assamble fake globals we need184 globals = {185 '__name__': filename,186 '__file__': filename,187 '__jinja_exception__': exc_info[:2]187 '__jinja_exception__': exc_info[:2],188189 # we don't want to keep the reference to the template around190 # to not cause circular dependencies, but we mark it as Jinja191 # frame for the ProcessedTraceback192 '__jinja_template__': None193 }194195 # and fake the exception196 code = compile('\n' * (lineno - 1) + 'raise __jinja_exception__[0], ' +
104 unmodified lines