mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Removed two unneeded lines from PyObject_Compare().
Closes bug #885293 (thanks, Josiah Carlson).
This commit is contained in:
parent
fcc51767bd
commit
fb5a4e33fb
1 changed files with 0 additions and 2 deletions
|
@ -746,7 +746,6 @@ do_cmp(PyObject *v, PyObject *w)
|
|||
int
|
||||
PyObject_Compare(PyObject *v, PyObject *w)
|
||||
{
|
||||
PyTypeObject *vtp;
|
||||
int result;
|
||||
|
||||
if (v == NULL || w == NULL) {
|
||||
|
@ -755,7 +754,6 @@ PyObject_Compare(PyObject *v, PyObject *w)
|
|||
}
|
||||
if (v == w)
|
||||
return 0;
|
||||
vtp = v->ob_type;
|
||||
if (Py_EnterRecursiveCall(" in cmp"))
|
||||
return -1;
|
||||
result = do_cmp(v, w);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue