[Zope3-checkins] CVS: Zope3/src/zope/app/browser/skins/debug - exceptions.py:1.3
Tres Seaver
tseaver@zope.com
Wed, 12 Mar 2003 09:24:56 -0500
Update of /cvs-repository/Zope3/src/zope/app/browser/skins/debug
In directory cvs.zope.org:/tmp/cvs-serv17538
Modified Files:
exceptions.py
Log Message:
- exceptions.py:
o Conform to Z3 style guide.
- tests/test_exceptions.py:
o Add a minimal test of the view's traceback extraction.
=== Zope3/src/zope/app/browser/skins/debug/exceptions.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/browser/skins/debug/exceptions.py:1.2 Wed Mar 12 05:06:19 2003
+++ Zope3/src/zope/app/browser/skins/debug/exceptions.py Wed Mar 12 09:24:25 2003
@@ -23,18 +23,17 @@
from zope.interface.common.interfaces import IException
class ExceptionDebugView:
-
""" Render exceptions for debugging.
"""
- __used_for__ = ( IException, )
+ __used_for__ = (IException,)
- def __init__( self, context, request ):
+ def __init__(self, context, request):
self.context = context
self.request = request
self.error_type, self.error_object, tb = sys.exc_info()
try:
- self.traceback_lines = traceback.format_tb( tb )
+ self.traceback_lines = traceback.format_tb(tb)
finally:
del tb