[Zope3-checkins] CVS: Zope3/src/zope/exceptions - exceptionformatter.py:1.3
Steve Alexander
steve@cat-box.net
Thu, 13 Mar 2003 13:34:06 -0500
Update of /cvs-repository/Zope3/src/zope/exceptions
In directory cvs.zope.org:/tmp/cvs-serv32250/src/zope/exceptions
Modified Files:
exceptionformatter.py
Log Message:
Whitespace cleanup.
=== Zope3/src/zope/exceptions/exceptionformatter.py 1.2 => 1.3 ===
--- Zope3/src/zope/exceptions/exceptionformatter.py:1.2 Wed Dec 25 09:13:38 2002
+++ Zope3/src/zope/exceptions/exceptionformatter.py Thu Mar 13 13:34:06 2003
@@ -16,14 +16,11 @@
$Id$
"""
-
import sys
import cgi
-
DEBUG_EXCEPTION_FORMATTER = 1
-
class TextExceptionFormatter:
line_sep = '\n'
@@ -55,6 +52,7 @@
if revision is not None:
try:
revision = str(revision).strip()
+ # XXX bare except without a comment explaining it.
except:
revision = '???'
return revision
@@ -194,8 +192,7 @@
return result
-
-class HTMLExceptionFormatter (TextExceptionFormatter):
+class HTMLExceptionFormatter(TextExceptionFormatter):
line_sep = '<br />\r\n'
@@ -219,7 +216,6 @@
def formatLastLine(self, exc_line):
return '</ul>%s</p>' % self.escape(exc_line)
-
limit = 200