Lines Matching refs:tb
38 def __init__(self, tb):
39 self.tb = tb
49 tb_set_next(self.tb, next and next.tb or None)
59 return '__jinja_template__' in self.tb.tb_frame.f_globals
62 return getattr(self.tb, name)
90 for tb in self.frames:
92 prev_tb.set_next(tb)
93 prev_tb = tb
123 tb = self.frames[0]
126 if type(tb) is not TracebackType:
127 tb = tb.tb
128 return self.exc_type, self.exc_value, tb
133 exc_type, exc_value, tb = exc_info
157 tb = exc_info[2]
162 if tb is not None:
163 tb = tb.tb_next
164 initial_tb = tb
166 while tb is not None:
170 if tb.tb_frame.f_code in internal_code:
171 tb = tb.tb_next
176 next = tb.tb_next
179 template = tb.tb_frame.f_globals.get('__jinja_template__')
181 lineno = template.get_corresponding_lineno(tb.tb_lineno)
182 tb = fake_exc_info(exc_info[:2] + (tb,), template.filename,
185 frames.append(make_frame_proxy(tb))
186 tb = next
199 exc_type, exc_value, tb = exc_info
202 if tb is not None:
203 real_locals = tb.tb_frame.f_locals.copy()
237 if tb is None:
240 function = tb.tb_frame.f_code.co_name
309 def tb_set_next(tb, next):
311 if not (isinstance(tb, TracebackType) and
314 obj = _Traceback.from_address(id(tb))
315 if tb.tb_next is not None:
316 old = _Traceback.from_address(id(tb.tb_next))