@@ -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" );
@@ -543,15 +543,15 @@ poll_poll(pollObject *self, PyObject *args)
543543 }
544544 else {
545545 if (_PyTime_FromMillisecondsObject (& timeout , timeout_obj ,
546- _PyTime_ROUND_CEILING ) < 0 ) {
546+ _PyTime_ROUND_TIMEOUT ) < 0 ) {
547547 if (PyErr_ExceptionMatches (PyExc_TypeError )) {
548548 PyErr_SetString (PyExc_TypeError ,
549549 "timeout must be an integer or None" );
550550 }
551551 return NULL ;
552552 }
553553
554- ms = _PyTime_AsMilliseconds (timeout , _PyTime_ROUND_CEILING );
554+ ms = _PyTime_AsMilliseconds (timeout , _PyTime_ROUND_TIMEOUT );
555555 if (ms < INT_MIN || ms > INT_MAX ) {
556556 PyErr_SetString (PyExc_OverflowError , "timeout is too large" );
557557 return NULL ;
@@ -899,15 +899,15 @@ devpoll_poll(devpollObject *self, PyObject *args)
899899 }
900900 else {
901901 if (_PyTime_FromMillisecondsObject (& timeout , timeout_obj ,
902- _PyTime_ROUND_CEILING ) < 0 ) {
902+ _PyTime_ROUND_TIMEOUT ) < 0 ) {
903903 if (PyErr_ExceptionMatches (PyExc_TypeError )) {
904904 PyErr_SetString (PyExc_TypeError ,
905905 "timeout must be an integer or None" );
906906 }
907907 return NULL ;
908908 }
909909
910- ms = _PyTime_AsMilliseconds (timeout , _PyTime_ROUND_CEILING );
910+ ms = _PyTime_AsMilliseconds (timeout , _PyTime_ROUND_TIMEOUT );
911911 if (ms < -1 || ms > INT_MAX ) {
912912 PyErr_SetString (PyExc_OverflowError , "timeout is too large" );
913913 return NULL ;
@@ -1514,7 +1514,7 @@ pyepoll_poll(pyEpoll_Object *self, PyObject *args, PyObject *kwds)
15141514 /* epoll_wait() has a resolution of 1 millisecond, round towards
15151515 infinity to wait at least timeout seconds. */
15161516 if (_PyTime_FromSecondsObject (& timeout , timeout_obj ,
1517- _PyTime_ROUND_CEILING ) < 0 ) {
1517+ _PyTime_ROUND_TIMEOUT ) < 0 ) {
15181518 if (PyErr_ExceptionMatches (PyExc_TypeError )) {
15191519 PyErr_SetString (PyExc_TypeError ,
15201520 "timeout must be an integer or None" );
@@ -2129,7 +2129,7 @@ kqueue_queue_control(kqueue_queue_Object *self, PyObject *args)
21292129 }
21302130 else {
21312131 if (_PyTime_FromSecondsObject (& timeout ,
2132- otimeout , _PyTime_ROUND_CEILING ) < 0 ) {
2132+ otimeout , _PyTime_ROUND_TIMEOUT ) < 0 ) {
21332133 PyErr_Format (PyExc_TypeError ,
21342134 "timeout argument must be a number "
21352135 "or None, got %.200s" ,
0 commit comments