diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-04-06 21:59:20 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-04-06 21:59:20 (GMT) |
commit | dee6795eeda1b3931c0379665cc08c349dc3af32 (patch) | |
tree | 8a0118fcaf5507ba6f50fe39cb8c41e9754175fc /Modules | |
parent | c7d44a4e0508248fbf26fc1a09757e9360a4b5ca (diff) | |
download | cpython-dee6795eeda1b3931c0379665cc08c349dc3af32.zip cpython-dee6795eeda1b3931c0379665cc08c349dc3af32.tar.gz cpython-dee6795eeda1b3931c0379665cc08c349dc3af32.tar.bz2 |
Merged revisions 79868 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r79868 | benjamin.peterson | 2010-04-06 16:55:16 -0500 (Tue, 06 Apr 2010) | 13 lines
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')
-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 7d5ea76..0fd3c48 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 |