Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fb5a4e3

Browse files
committed
Removed two unneeded lines from PyObject_Compare().
Closes bug #885293 (thanks, Josiah Carlson).
1 parent fcc5176 commit fb5a4e3

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

Objects/object.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,6 @@ do_cmp(PyObject *v, PyObject *w)
746746
int
747747
PyObject_Compare(PyObject *v, PyObject *w)
748748
{
749-
PyTypeObject *vtp;
750749
int result;
751750

752751
if (v == NULL || w == NULL) {
@@ -755,7 +754,6 @@ PyObject_Compare(PyObject *v, PyObject *w)
755754
}
756755
if (v == w)
757756
return 0;
758-
vtp = v->ob_type;
759757
if (Py_EnterRecursiveCall(" in cmp"))
760758
return -1;
761759
result = do_cmp(v, w);

0 commit comments

Comments
 (0)