diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-04-06 21:55:16 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-04-06 21:55:16 (GMT) |
commit | d856ab6171d117c2f02ed90f3e2b389319ee9ef0 (patch) | |
tree | 60f19b0290b5e3362b9949070a95e7edbe106357 /Modules/selectmodule.c | |
parent | 670917769197c0561e94c59b95df86525d834eb7 (diff) | |
download | cpython-d856ab6171d117c2f02ed90f3e2b389319ee9ef0.zip cpython-d856ab6171d117c2f02ed90f3e2b389319ee9ef0.tar.gz cpython-d856ab6171d117c2f02ed90f3e2b389319ee9ef0.tar.bz2 |
Merged revisions 79866-79867 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r79866 | benjamin.peterson | 2010-04-06 16:37:06 -0500 (Tue, 06 Apr 2010) | 1 line
use skip decorator
........
r79867 | benjamin.peterson | 2010-04-06 16:50:00 -0500 (Tue, 06 Apr 2010) | 1 line
remove a optimization that resulted in unexpected behavior #8929
........
Diffstat (limited to 'Modules/selectmodule.c')
-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 c13bab9..1c021ba 100644 --- a/Modules/selectmodule.c +++ b/Modules/selectmodule.c @@ -284,14 +284,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 |