Skip to content

Commit 40b8f3e

Browse files
committed
remove a deprecated trace of python2
1 parent a4da532 commit 40b8f3e

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

src/sage/structure/element.pxd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ cdef bin_op_exception(op, x, y)
151151
cdef class Element(SageObject):
152152
cdef Parent _parent
153153
cpdef _richcmp_(left, right, int op)
154-
cpdef int _cmp_(left, right) except -2
155154
cpdef base_extend(self, R)
156155

157156
cdef getattr_from_category(self, name)

src/sage/structure/element.pyx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1159,13 +1159,6 @@ cdef class Element(SageObject):
11591159
return True
11601160
return NotImplemented
11611161

1162-
cpdef int _cmp_(left, right) except -2:
1163-
"""
1164-
This was the old comparison framework. Now deprecated. Do not use.
1165-
"""
1166-
deprecation(30130, "please use _richcmp_ for comparison methods")
1167-
raise NotImplementedError("__cmp__ and _cmp_ are deprecated")
1168-
11691162
##################################################
11701163
# Arithmetic using the coercion model
11711164
##################################################

0 commit comments

Comments
 (0)