We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 543d44c commit 74b98caCopy full SHA for 74b98ca
Modules/_functoolsmodule.c
@@ -688,7 +688,6 @@ partial_repr(PyObject *self)
688
{
689
partialobject *pto = partialobject_CAST(self);
690
PyObject *result = NULL;
691
- PyObject *fn, *args, *kw;
692
PyObject *arglist = NULL;
693
PyObject *mod = NULL;
694
PyObject *name = NULL;
@@ -704,9 +703,9 @@ partial_repr(PyObject *self)
704
703
return PyUnicode_FromString("...");
705
}
706
/* Reference arguments in case they change */
707
- fn = Py_NewRef(pto->fn);
708
- args = Py_NewRef(pto->args);
709
- kw = Py_NewRef(pto->kw);
+ PyObject *fn = Py_NewRef(pto->fn);
+ PyObject *args = Py_NewRef(pto->args);
+ PyObject *kw = Py_NewRef(pto->kw);
710
assert(PyTuple_Check(args));
711
assert(PyDict_Check(kw));
712
0 commit comments