----- "nikhil n" <[EMAIL PROTECTED]> wrote: > 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)
Hi Nikhil, Please use a space after comma (,) : nasty_exception_str = getattr(Exception.__str__, 'im_func', None) Try to follow PEP-8 , but Zope only use a subset of this PEP. http://www.python.org/dev/peps/pep-0008/ Regards, Baiju M _______________________________________________ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins