[Checkins] SVN: z3c.relationfield/trunk/ __neq__ -> __eq__
Partick Gerken
cvs-admin at zope.org
Mon Jul 2 15:12:53 UTC 2012
Log message for revision 127228:
__neq__ -> __eq__
Changed:
U z3c.relationfield/trunk/CHANGES.txt
U z3c.relationfield/trunk/src/z3c/relationfield/relation.py
-=-
Modified: z3c.relationfield/trunk/CHANGES.txt
===================================================================
--- z3c.relationfield/trunk/CHANGES.txt 2012-07-02 12:40:21 UTC (rev 127227)
+++ z3c.relationfield/trunk/CHANGES.txt 2012-07-02 15:12:48 UTC (rev 127228)
@@ -9,7 +9,10 @@
* Added missing (test) dependencies.
+* Rename __neq__ method to __ne__ since __neq__ is not the right builtin
+ name for != handlers.
+
0.6.1 (2009-10-11)
==================
Modified: z3c.relationfield/trunk/src/z3c/relationfield/relation.py
===================================================================
--- z3c.relationfield/trunk/src/z3c/relationfield/relation.py 2012-07-02 12:40:21 UTC (rev 127227)
+++ z3c.relationfield/trunk/src/z3c/relationfield/relation.py 2012-07-02 15:12:48 UTC (rev 127228)
@@ -71,7 +71,7 @@
# otherwise do a full comparison
return self_sort_key == other_sort_key
- def __neq__(self, other):
+ def __ne__(self, other):
return not self.__eq__(other)
def __cmp__(self, other):
More information about the checkins
mailing list