Skip to content
Myr

We cannot fake the descriptor on a tproxy so we have to set _tb_next directly

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

authored by Armin Ronacher · committed by Armin Ronacher · parent 40c593e · Browse files · 1 file+2 added−2 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+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:jinja2/debug.py+2 added-2 removed
78 unmodified lines
79 # newly concatenate the frames (which are proxies)80 prev_tb = None81 for tb in self.frames:82 if prev_tb is not None:83 prev_tb.tb_next = tb83 prev_tb._tb_next = tb84 prev_tb = tb85 prev_tb.tb_next = None85 prev_tb._tb_next = None8687 def render_as_text(self, limit=None):88 """Return a string with the traceback."""89 lines = traceback.format_exception(self.exc_type, self.exc_value,
241 unmodified lines