[Zope3-checkins] SVN: Zope3/branches/ZopeX3-3.0/src/zope/exceptions/exceptionformatter.py Added some defensive programming to work around a lame implicit Python

Jim Fulton jim at zope.com
Fri Aug 20 15:26:59 EDT 2004


Log message for revision 27194:
  Added some defensive programming to work around a lame implicit Python
  string-formatting behavior.
  


Changed:
  U   Zope3/branches/ZopeX3-3.0/src/zope/exceptions/exceptionformatter.py


-=-
Modified: Zope3/branches/ZopeX3-3.0/src/zope/exceptions/exceptionformatter.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/exceptions/exceptionformatter.py	2004-08-20 19:26:57 UTC (rev 27193)
+++ Zope3/branches/ZopeX3-3.0/src/zope/exceptions/exceptionformatter.py	2004-08-20 19:26:59 UTC (rev 27194)
@@ -112,7 +112,7 @@
         return result
 
     def formatTracebackInfo(self, tbi):
-        return self.formatSupplementLine('__traceback_info__: %s' % tbi)
+        return self.formatSupplementLine('__traceback_info__: %s' % (tbi, ))
 
     def formatLine(self, tb):
         f = tb.tb_frame



More information about the Zope3-Checkins mailing list