[Lxml-checkins] r54977 - in lxml/trunk: . src/lxml

scoder at codespeak.net scoder at codespeak.net
Tue May 20 00:01:54 CEST 2008


Author: scoder
Date: Tue May 20 00:01:52 2008
New Revision: 54977

Modified:
   lxml/trunk/   (props changed)
   lxml/trunk/src/lxml/xmlid.pxi
Log:
 r4234 at delle:  sbehnel | 2008-05-19 23:52:58 +0200
 dicts are no longer comparable in Py3 => same for fake XML ID dict


Modified: lxml/trunk/src/lxml/xmlid.pxi
==============================================================================
--- lxml/trunk/src/lxml/xmlid.pxi	(original)
+++ lxml/trunk/src/lxml/xmlid.pxi	Tue May 20 00:01:52 2008
@@ -110,18 +110,6 @@
         else:
             return cmp(dict(self), other)
 
-    def __richcmp__(self, other, int op):
-        cdef int c_cmp
-        if other is None:
-            return op == 0 or op == 1 or op == 3
-        c_cmp = cmp(dict(self), other)
-        if c_cmp == 0: # equal
-            return op == 1 or op == 2 or op == 5
-        elif c_cmp < 0:
-            return op == 0 or op == 1 or op == 3
-        else:
-            return op == 4 or op == 5 or op == 3
-
     def __repr__(self):
         return repr(dict(self))
 


More information about the lxml-checkins mailing list