Skip to content

Commit b76ffee

Browse files
committed
put back accidental removal
1 parent 10ee972 commit b76ffee

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Modules/_functoolsmodule.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -703,6 +703,7 @@ partial_setstate(partialobject *pto, PyObject *state)
703703
}
704704

705705
/* Count placeholders */
706+
Py_ssize_t nargs = PyTuple_GET_SIZE(fnargs);
706707
Py_ssize_t phcount = 0;
707708
for (Py_ssize_t i = 0; i < nargs - 1; i++) {
708709
if (PyTuple_GET_ITEM(fnargs, i) == pto->placeholder) {

0 commit comments

Comments
 (0)