[Zope-Checkins] CVS: Zope/lib/python/zExceptions - ExceptionFormatter.py:1.1.4.2

Shane Hathaway shane@cvs.zope.org
Wed, 3 Apr 2002 14:43:31 -0500


Update of /cvs-repository/Zope/lib/python/zExceptions
In directory cvs.zope.org:/tmp/cvs-serv6909

Modified Files:
      Tag: shane-better-tracebacks-branch
	ExceptionFormatter.py 
Log Message:
Fixed URL printing and the default arguments to format_exception().

=== Zope/lib/python/zExceptions/ExceptionFormatter.py 1.1.4.1 => 1.1.4.2 ===
 
     def formatSourceURL(self, url):
-        return ['URL: %s' % self.formatSupplementLine(url)]
+        return [self.formatSupplementLine('URL: %s' % url)]
 
     def formatSupplement(self, supplement, tb):
         result = []
@@ -244,7 +244,7 @@
 html_formatter = HTMLExceptionFormatter(limit)
 
 
-def format_exception(t, v, tb, as_html=0, limit=None):
+def format_exception(t, v, tb, limit=None, as_html=0):
     if as_html:
         fmt = html_formatter
     else: