diff options
| author | scoder <none@none> | 2008-05-20 00:01:52 +0200 |
|---|---|---|
| committer | scoder <none@none> | 2008-05-20 00:01:52 +0200 |
| commit | df2b8fc520b4ddfb296acf367c778d3f79d2126b (patch) | |
| tree | 2e7e7b6fcbe33e150f322e95dce210b45a7be421 /src/lxml/xmlid.pxi | |
| parent | 0c26b4e630f5d3cbdf42dffdb10680a50e6209f7 (diff) | |
| download | python-lxml-df2b8fc520b4ddfb296acf367c778d3f79d2126b.tar.gz | |
[svn r3688] r4234@delle: sbehnel | 2008-05-19 23:52:58 +0200
dicts are no longer comparable in Py3 => same for fake XML ID dict
--HG--
branch : trunk
Diffstat (limited to 'src/lxml/xmlid.pxi')
| -rw-r--r-- | src/lxml/xmlid.pxi | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/lxml/xmlid.pxi b/src/lxml/xmlid.pxi index 8118f6f2..7dab7b04 100644 --- a/src/lxml/xmlid.pxi +++ b/src/lxml/xmlid.pxi @@ -110,18 +110,6 @@ cdef class _IDDict: 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)) |
