Skip to content

Commit 86079c4

Browse files
Fix functools
1 parent 375bf2c commit 86079c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_functoolsmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1076,7 +1076,7 @@ _functools_reduce_impl(PyObject *module, PyObject *func, PyObject *seq,
10761076
for (;;) {
10771077
PyObject *op2;
10781078

1079-
if (_PyObject_IsUniquelyReferenced(args)) {
1079+
if (!_PyObject_IsUniquelyReferenced(args)) {
10801080
Py_DECREF(args);
10811081
if ((args = PyTuple_New(2)) == NULL)
10821082
goto Fail;

0 commit comments

Comments
 (0)