[Zope3-checkins] SVN: zope.testing/trunk/src/zope/testing/__init__.py Removed traceback formatter monkey patching to eliminate circular dependency (blame Jim).

Nathan Yergler nathan at yergler.net
Mon Feb 27 19:34:35 EST 2006


Log message for revision 65557:
  Removed traceback formatter monkey patching to eliminate circular dependency (blame Jim).

Changed:
  U   zope.testing/trunk/src/zope/testing/__init__.py

-=-
Modified: zope.testing/trunk/src/zope/testing/__init__.py
===================================================================
--- zope.testing/trunk/src/zope/testing/__init__.py	2006-02-28 00:33:20 UTC (rev 65556)
+++ zope.testing/trunk/src/zope/testing/__init__.py	2006-02-28 00:34:34 UTC (rev 65557)
@@ -15,16 +15,3 @@
 
 $Id$
 """
-import os
-
-def patchTracebackModule():
-    """Use the ExceptionFormatter to show more info in tracebacks.
-    """
-    from zope.exceptions.exceptionformatter import format_exception
-    import traceback
-    traceback.format_exception = format_exception
-
-# Don't use the new exception formatter by default, since it
-# doesn't show filenames.
-if os.environ.get('NEW_ZOPE_EXCEPTION_FORMATTER', 0):
-    patchTracebackModule()



More information about the Zope3-Checkins mailing list