mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
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 ........
This commit is contained in:
parent
6709177691
commit
d856ab6171
3 changed files with 12 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue