Skip to content

Commit 3f1f553

Browse files
committed
Replace ROUND_CEILING for ROUND_UP in select.select check
1 parent 5c96cd6 commit 3f1f553

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/selectmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ 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_UP) < 0) {
217217
if (PyErr_ExceptionMatches(PyExc_TypeError)) {
218218
PyErr_SetString(PyExc_TypeError,
219219
"timeout must be a float or None");

0 commit comments

Comments
 (0)