[POS-commit] r3993 - stoq/trunk/stoq/lib
Johan Dahlin
jdahlin at async.com.br
Wed Jul 26 17:13:29 BRT 2006
Author: jdahlin
Date: Wed Jul 26 17:13:28 2006
New Revision: 3993
Modified:
stoq/trunk/stoq/lib/stoqconfig.py
Log:
Remove unnecessary excepthook
Modified: stoq/trunk/stoq/lib/stoqconfig.py
==============================================================================
--- stoq/trunk/stoq/lib/stoqconfig.py (original)
+++ stoq/trunk/stoq/lib/stoqconfig.py Wed Jul 26 17:13:28 2006
@@ -297,13 +297,3 @@
def log_header():
now = time.strftime("%Y-%m-%d %H:%M")
return "%s (%s)" % (now, os.getpid())
-
-def excepthook(tp, v, t):
- # Reimplement the module formatting PyErr_Display does, more or less
- if tp.__module__ == "exceptions":
- tp = str(tp)[11:]
- elif tp.__module__ is None:
- tp = "<unknown> %s" % str(tp)
- sys.__excepthook__("%s: %s" % (log_header(), tp), v, t)
-
-sys.excepthook = excepthook
More information about the POS-commit
mailing list