Lines Matching refs:tb
39 def __init__(self, tb):
40 self.tb = tb
50 tb_set_next(self.tb, next and next.tb or None)
60 return '__jinja_template__' in self.tb.tb_frame.f_globals
63 return getattr(self.tb, name)
91 for tb in self.frames:
93 prev_tb.set_next(tb)
94 prev_tb = tb
124 tb = self.frames[0]
127 if type(tb) is not TracebackType:
128 tb = tb.tb
129 return self.exc_type, self.exc_value, tb
134 exc_type, exc_value, tb = exc_info
158 tb = exc_info[2]
163 if tb is not None:
164 tb = tb.tb_next
165 initial_tb = tb
167 while tb is not None:
171 if tb.tb_frame.f_code in internal_code:
172 tb = tb.tb_next
177 next = tb.tb_next
180 template = tb.tb_frame.f_globals.get('__jinja_template__')
182 lineno = template.get_corresponding_lineno(tb.tb_lineno)
183 tb = fake_exc_info(exc_info[:2] + (tb,), template.filename,
186 frames.append(make_frame_proxy(tb))
187 tb = next
230 exc_type, exc_value, tb = exc_info
233 if tb is not None:
234 locals = get_jinja_locals(tb.tb_frame.f_locals)
260 if tb is None:
263 function = tb.tb_frame.f_code.co_name
345 def tb_set_next(tb, next):
347 if not (isinstance(tb, TracebackType) and
350 obj = _Traceback.from_address(id(tb))
351 if tb.tb_next is not None:
352 old = _Traceback.from_address(id(tb.tb_next))