[Zope-Checkins] Re: [Checkins] SVN:
Zope/trunk/lib/python/DocumentTemplate/ustr.py
change for making zope2 work in Python2.5
mbaiju at mail.zeomega.com
mbaiju at mail.zeomega.com
Sat Nov 10 22:21:52 EST 2007
----- "nikhil n" <nikhil.n.n at gmail.com> 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
More information about the Zope-Checkins
mailing list