diff options
| author | Benjamin Peterson <benjamin@python.org> | 2010-04-06 21:50:00 +0000 |
|---|---|---|
| committer | Benjamin Peterson <benjamin@python.org> | 2010-04-06 21:50:00 +0000 |
| commit | a7d17f3418d227db0787f56817d727414b92b927 (patch) | |
| tree | ea7b886bbdf4fcc444aff83184cd9fa9992bc42c /Modules | |
| parent | d8d671cca3f5fb2514a551b339dbc2de34fa67a5 (diff) | |
| download | cpython-a7d17f3418d227db0787f56817d727414b92b927.tar.gz | |
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 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 |
