summaryrefslogtreecommitdiff
path: root/Modules
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-04-06 21:50:00 +0000
committerBenjamin Peterson <benjamin@python.org>2010-04-06 21:50:00 +0000
commita7d17f3418d227db0787f56817d727414b92b927 (patch)
treeea7b886bbdf4fcc444aff83184cd9fa9992bc42c /Modules
parentd8d671cca3f5fb2514a551b339dbc2de34fa67a5 (diff)
downloadcpython-a7d17f3418d227db0787f56817d727414b92b927.tar.gz
remove a optimization that resulted in unexpected behavior #8929
Diffstat (limited to 'Modules')
-rw-r--r--Modules/selectmodule.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c
index aae08d5b81..5f862d73bb 100644
--- a/Modules/selectmodule.c
+++ b/Modules/selectmodule.c
@@ -287,14 +287,6 @@ select_select(PyObject *self, PyObject *args)
PyErr_SetFromErrno(SelectError);
}
#endif
- else if (n == 0) {
- /* optimization */
- ifdlist = PyList_New(0);
- if (ifdlist) {
- ret = PyTuple_Pack(3, ifdlist, ifdlist, ifdlist);
- Py_DECREF(ifdlist);
- }
- }
else {
/* any of these three calls can raise an exception. it's more
convenient to test for this after all three calls... but