[Zope-Checkins] SVN: Zope/trunk/lib/python/DocumentTemplate/ustr.py change for making zope2 work in Python2.5

nikhil n nikhil.n.n at gmail.com
Sat Nov 10 06:39:19 EST 2007


Log message for revision 81698:
  change for making zope2 work in Python2.5

Changed:
  U   Zope/trunk/lib/python/DocumentTemplate/ustr.py

-=-
Modified: Zope/trunk/lib/python/DocumentTemplate/ustr.py
===================================================================
--- Zope/trunk/lib/python/DocumentTemplate/ustr.py	2007-11-10 11:38:21 UTC (rev 81697)
+++ Zope/trunk/lib/python/DocumentTemplate/ustr.py	2007-11-10 11:39:18 UTC (rev 81698)
@@ -15,7 +15,7 @@
 $Id$
 """
 
-nasty_exception_str = Exception.__str__.im_func
+nasty_exception_str = getattr(Exception.__str__,'im_func',None)
 
 def ustr(v):
     """Convert any object to a plain string or unicode string,



More information about the Zope-Checkins mailing list