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

nikhil n nikhil.n.n at gmail.com
Sat Jul 7 07:32:19 EDT 2007


Log message for revision 77566:
  made zope.app.undo work with Python 2.5

Changed:
  U   zope.app.undo/branches/nikhil_n-py25/src/zope/app/undo/__init__.py

-=-
Modified: zope.app.undo/branches/nikhil_n-py25/src/zope/app/undo/__init__.py
===================================================================
--- zope.app.undo/branches/nikhil_n-py25/src/zope/app/undo/__init__.py	2007-07-07 11:30:45 UTC (rev 77565)
+++ zope.app.undo/branches/nikhil_n-py25/src/zope/app/undo/__init__.py	2007-07-07 11:32:18 UTC (rev 77566)
@@ -83,7 +83,7 @@
     False
     """
     def __eq__(self, other):
-        if other and unicode(other[:len(self)]).__cmp__(self) == 0:
+        if other and unicode(other[:len(self)]).__eq__(self) == 1:
             return True
         return False
 



More information about the Checkins mailing list