diff options
author | Barry Warsaw <barry@python.org> | 1996-12-16 18:15:34 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 1996-12-16 18:15:34 (GMT) |
commit | 529fcfe31f61fe499564f6778774f61c19671681 (patch) | |
tree | acdc07567466b7ef681b6c46aa1437db4f800acc /Modules/selectmodule.c | |
parent | 0969ad213d73a052e66ebf83cb4eae48a0dd7b55 (diff) | |
download | cpython-529fcfe31f61fe499564f6778774f61c19671681.zip cpython-529fcfe31f61fe499564f6778774f61c19671681.tar.gz cpython-529fcfe31f61fe499564f6778774f61c19671681.tar.bz2 |
list2set(): correct return value (an int, not a PyObject*).
Diffstat (limited to 'Modules/selectmodule.c')
-rw-r--r-- | Modules/selectmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c index dfe95484..047c0d4 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); |