[Checkins] SVN: zope.app.undo/branches/nikhil_n-py25/src/zope/app/undo/__init__.py made zope.app.undo work with Python 2.5

Benji York benji at zope.com
Mon Jul 9 13:39:05 EDT 2007


Nikhil N wrote:
> The body of the function I will be committing  soon is changed to
>  """
>   if other and other.startswith(self):
>                 return True
>   return False
> """
> Please correct me if I am wrong.

Sounds good.  If you're worried about other being None you can do "if 
other is not None and other.startswith(self):".
-- 
Benji York
Senior Software Engineer
Zope Corporation


More information about the Checkins mailing list