diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-04-06 21:50:00 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-04-06 21:50:00 (GMT) |
commit | 3a1dfa21c297a263823033a45e3739d201dfddcf (patch) | |
tree | 4d6526d135f9809f4257937c2d04a68cf005b929 /Modules | |
parent | 22c62dd345da5668a8adc86196569ce5df5d2831 (diff) | |
download | cpython-3a1dfa21c297a263823033a45e3739d201dfddcf.zip cpython-3a1dfa21c297a263823033a45e3739d201dfddcf.tar.gz cpython-3a1dfa21c297a263823033a45e3739d201dfddcf.tar.bz2 |
remove a optimization that resulted in unexpected behavior #8929
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/selectmodule.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c index aae08d5..5f862d7 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 |