Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
eendebakpt committed Dec 6, 2024
1 parent 7065ec4 commit a8655d0
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions Modules/_operator.c
Original file line number Diff line number Diff line change
Expand Up @@ -1589,15 +1589,6 @@ static PyType_Spec attrgetter_type_spec = {
.slots = attrgetter_type_slots,
};

static void print_str(PyObject *o)
{
PyObject_Print(o, stdout, Py_PRINT_RAW);
}

static void print_repr(PyObject *o)
{
PyObject_Print(o, stdout, 0);
}

/* methodcaller object **********************************************************/

Expand Down Expand Up @@ -1890,7 +1881,7 @@ methodcaller_reduce(methodcallerobject *mc, PyObject *Py_UNUSED(ignored))
constructor = PyObject_VectorcallDict(partial, newargs, 2, mc->kwds);

Py_DECREF(partial);
return Py_BuildValue("NO", constructor, mc->args);
return Py_BuildValue("NO", constructor, Py_NewRef(mc->args));
}
}

Expand Down

0 comments on commit a8655d0

Please sign in to comment.