Lines Matching refs:tb
109 type, value, tb = sys.exc_info()
115 traceback.print_exception(type, value, tb, file=sys.__stderr__)
159 typ, val, tb = excinfo = sys.exc_info()
161 tbe = traceback.extract_tb(tb)
171 def cleanup_traceback(tb, exclude):
172 "Remove excluded traces from beginning/end of tb; get cached lines"
173 orig_tb = tb[:]
174 while tb:
176 if tb[0][0].count(rpcfile):
177 break # found an exclude, break for: and delete tb[0]
180 del tb[0]
181 while tb:
183 if tb[-1][0].count(rpcfile):
187 del tb[-1]
188 if len(tb) == 0:
190 tb[:] = orig_tb[:]
193 for i in range(len(tb)):
194 fn, ln, nm, line = tb[i]
200 tb[i] = fn, ln, nm, line
343 typ, val, tb = self.usr_exc_info
349 while tb and tb.tb_frame.f_globals["__name__"] in ["rpc", "run"]:
350 tb = tb.tb_next
353 item = StackViewer.StackTreeItem(flist, tb)