From 529fcfe31f61fe499564f6778774f61c19671681 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Mon, 16 Dec 1996 18:15:34 +0000 Subject: [PATCH] list2set(): correct return value (an int, not a PyObject*). --- Modules/selectmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c index dfe95484cf..047c0d437c 100644 --- a/Modules/selectmodule.c +++ b/Modules/selectmodule.c @@ -101,7 +101,7 @@ list2set(list, set, fd2obj) /* any intervening fileno() calls could decr this refcnt */ if (!(o = PyList_GetItem(list, i))) - return NULL; + return -1; Py_INCREF(o); -- 2.50.1