Skip to content

Commit a8655d0

Browse files
committed
cleanup
1 parent 7065ec4 commit a8655d0

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

Modules/_operator.c

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1589,15 +1589,6 @@ static PyType_Spec attrgetter_type_spec = {
15891589
.slots = attrgetter_type_slots,
15901590
};
15911591

1592-
static void print_str(PyObject *o)
1593-
{
1594-
PyObject_Print(o, stdout, Py_PRINT_RAW);
1595-
}
1596-
1597-
static void print_repr(PyObject *o)
1598-
{
1599-
PyObject_Print(o, stdout, 0);
1600-
}
16011592

16021593
/* methodcaller object **********************************************************/
16031594

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

18921883
Py_DECREF(partial);
1893-
return Py_BuildValue("NO", constructor, mc->args);
1884+
return Py_BuildValue("NO", constructor, Py_NewRef(mc->args));
18941885
}
18951886
}
18961887

0 commit comments

Comments
 (0)