def postmortem(self): import PyDebugger PyDebugger.postmortem(self.type, self.value, self.tb)
else: exec code in globals, locals finally: if hasattr(MacOS, 'EnableAppswitch'): MacOS.EnableAppswitch(-1) except W.AlertError, detail: raise W.AlertError, detail except (KeyboardInterrupt, BdbQuit): pass except SystemExit, arg: if arg.code: sys.stderr.write("Script exited with status code: %s\n" % repr(arg.code)) except: if debugging: sys.settrace(None) PyDebugger.postmortem(sys.exc_type, sys.exc_value, sys.exc_traceback) return else: tracebackwindow.traceback(1, filename) if debugging: sys.settrace(None) PyDebugger.stop() _identifieRE = re.compile(r"[A-Za-z_][A-Za-z_0-9]*") def identifieRE_match(str): match = _identifieRE.match(str) if not match: return -1 return match.end()