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,

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to