[Checkins] SVN: zope.app.undo/trunk/src/zope/app/undo/__init__.py made zope.app.undo work with python2.5

nikhil n nikhil.n.n at gmail.com
Sat Jul 14 04:41:53 EDT 2007


Log message for revision 77897:
  made zope.app.undo work with python2.5

Changed:
  U   zope.app.undo/trunk/src/zope/app/undo/__init__.py

-=-
Modified: zope.app.undo/trunk/src/zope/app/undo/__init__.py
===================================================================
--- zope.app.undo/trunk/src/zope/app/undo/__init__.py	2007-07-14 08:35:35 UTC (rev 77896)
+++ zope.app.undo/trunk/src/zope/app/undo/__init__.py	2007-07-14 08:41:52 UTC (rev 77897)
@@ -83,9 +83,7 @@
     False
     """
     def __eq__(self, other):
-        if other and unicode(other[:len(self)]).__cmp__(self) == 0:
-            return True
-        return False
+        return other is not None and other.startswith(self)
 
     def __ne__(self, other):
         return not self.__eq__(other)



More information about the Checkins mailing list