@@ -213,15 +213,15 @@ select_select(PyObject *self, PyObject *args)
213213 tvp = (struct timeval * )NULL ;
214214 else {
215215 if (_PyTime_FromSecondsObject (& timeout , timeout_obj ,
216- _PyTime_ROUND_CEILING ) < 0 ) {
216+ _PyTime_ROUND_TIMEOUT ) < 0 ) {
217217 if (PyErr_ExceptionMatches (PyExc_TypeError )) {
218218 PyErr_SetString (PyExc_TypeError ,
219219 "timeout must be a float or None" );
220220 }
221221 return NULL ;
222222 }
223223
224- if (_PyTime_AsTimeval (timeout , & tv , _PyTime_ROUND_CEILING ) == -1 )
224+ if (_PyTime_AsTimeval (timeout , & tv , _PyTime_ROUND_TIMEOUT ) == -1 )
225225 return NULL ;
226226 if (tv .tv_sec < 0 ) {
227227 PyErr_SetString (PyExc_ValueError , "timeout must be non-negative" );
@@ -540,15 +540,15 @@ poll_poll(pollObject *self, PyObject *args)
540540 }
541541 else {
542542 if (_PyTime_FromMillisecondsObject (& timeout , timeout_obj ,
543- _PyTime_ROUND_CEILING ) < 0 ) {
543+ _PyTime_ROUND_TIMEOUT ) < 0 ) {
544544 if (PyErr_ExceptionMatches (PyExc_TypeError )) {
545545 PyErr_SetString (PyExc_TypeError ,
546546 "timeout must be an integer or None" );
547547 }
548548 return NULL ;
549549 }
550550
551- ms = _PyTime_AsMilliseconds (timeout , _PyTime_ROUND_CEILING );
551+ ms = _PyTime_AsMilliseconds (timeout , _PyTime_ROUND_TIMEOUT );
552552 if (ms < INT_MIN || ms > INT_MAX ) {
553553 PyErr_SetString (PyExc_OverflowError , "timeout is too large" );
554554 return NULL ;
@@ -896,15 +896,15 @@ devpoll_poll(devpollObject *self, PyObject *args)
896896 }
897897 else {
898898 if (_PyTime_FromMillisecondsObject (& timeout , timeout_obj ,
899- _PyTime_ROUND_CEILING ) < 0 ) {
899+ _PyTime_ROUND_TIMEOUT ) < 0 ) {
900900 if (PyErr_ExceptionMatches (PyExc_TypeError )) {
901901 PyErr_SetString (PyExc_TypeError ,
902902 "timeout must be an integer or None" );
903903 }
904904 return NULL ;
905905 }
906906
907- ms = _PyTime_AsMilliseconds (timeout , _PyTime_ROUND_CEILING );
907+ ms = _PyTime_AsMilliseconds (timeout , _PyTime_ROUND_TIMEOUT );
908908 if (ms < -1 || ms > INT_MAX ) {
909909 PyErr_SetString (PyExc_OverflowError , "timeout is too large" );
910910 return NULL ;
@@ -1513,7 +1513,7 @@ pyepoll_poll(pyEpoll_Object *self, PyObject *args, PyObject *kwds)
15131513 /* epoll_wait() has a resolution of 1 millisecond, round towards
15141514 infinity to wait at least timeout seconds. */
15151515 if (_PyTime_FromSecondsObject (& timeout , timeout_obj ,
1516- _PyTime_ROUND_CEILING ) < 0 ) {
1516+ _PyTime_ROUND_TIMEOUT ) < 0 ) {
15171517 if (PyErr_ExceptionMatches (PyExc_TypeError )) {
15181518 PyErr_SetString (PyExc_TypeError ,
15191519 "timeout must be an integer or None" );
@@ -2128,7 +2128,7 @@ kqueue_queue_control(kqueue_queue_Object *self, PyObject *args)
21282128 }
21292129 else {
21302130 if (_PyTime_FromSecondsObject (& timeout ,
2131- otimeout , _PyTime_ROUND_CEILING ) < 0 ) {
2131+ otimeout , _PyTime_ROUND_TIMEOUT ) < 0 ) {
21322132 PyErr_Format (PyExc_TypeError ,
21332133 "timeout argument must be a number "
21342134 "or None, got %.200s" ,
0 commit comments