Lines Matching refs:tb
176 type, value, tb = sys.exc_info()
182 traceback.print_exception(type, value, tb, file=sys.__stderr__)
223 def get_message_lines(typ, exc, tb):
229 sys.__excepthook__(typ, exc, tb)
240 typ, val, tb = excinfo = sys.exc_info()
244 def print_exc(typ, exc, tb):
258 if tb:
259 tbe = traceback.extract_tb(tb)
265 lines = get_message_lines(typ, exc, tb)
269 print_exc(typ, val, tb)
271 def cleanup_traceback(tb, exclude):
272 "Remove excluded traces from beginning/end of tb; get cached lines"
273 orig_tb = tb[:]
274 while tb:
276 if tb[0][0].count(rpcfile):
277 break # found an exclude, break for: and delete tb[0]
280 del tb[0]
281 while tb:
283 if tb[-1][0].count(rpcfile):
287 del tb[-1]
288 if len(tb) == 0:
290 tb[:] = orig_tb[:]
293 for i in range(len(tb)):
294 fn, ln, nm, line = tb[i]
300 tb[i] = fn, ln, nm, line
624 typ, val, tb = self.user_exc_info
630 while tb and tb.tb_frame.f_globals["__name__"] in ["rpc", "run"]:
631 tb = tb.tb_next
634 item = stackviewer.StackTreeItem(flist, tb)