mirror of
https://github.com/python/cpython
synced 2024-10-14 09:01:41 +00:00
Issue #20455: math.ceil() returns an int in Python 3, no need to cast the
result again to int
This commit is contained in:
parent
20b017ef9e
commit
665758f804
|
@ -372,7 +372,7 @@ def select(self, timeout=None):
|
|||
else:
|
||||
# poll() has a resolution of 1 millisecond, round away from
|
||||
# zero to wait *at least* timeout seconds.
|
||||
timeout = int(math.ceil(timeout * 1e3))
|
||||
timeout = math.ceil(timeout * 1e3)
|
||||
ready = []
|
||||
try:
|
||||
fd_event_list = self._poll.poll(timeout)
|
||||
|
|
Loading…
Reference in a new issue