Kaydet (Commit) fb5a4e33 authored tarafından Brett Cannon's avatar Brett Cannon

Removed two unneeded lines from PyObject_Compare().

Closes bug #885293 (thanks, Josiah Carlson).
üst fcc51767
...@@ -746,7 +746,6 @@ do_cmp(PyObject *v, PyObject *w) ...@@ -746,7 +746,6 @@ do_cmp(PyObject *v, PyObject *w)
int int
PyObject_Compare(PyObject *v, PyObject *w) PyObject_Compare(PyObject *v, PyObject *w)
{ {
PyTypeObject *vtp;
int result; int result;
if (v == NULL || w == NULL) { if (v == NULL || w == NULL) {
...@@ -755,7 +754,6 @@ PyObject_Compare(PyObject *v, PyObject *w) ...@@ -755,7 +754,6 @@ PyObject_Compare(PyObject *v, PyObject *w)
} }
if (v == w) if (v == w)
return 0; return 0;
vtp = v->ob_type;
if (Py_EnterRecursiveCall(" in cmp")) if (Py_EnterRecursiveCall(" in cmp"))
return -1; return -1;
result = do_cmp(v, w); result = do_cmp(v, w);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment