Issue #20455: math.ceil() returns an int in Python 3, no need to cast the

result again to int
This commit is contained in:
Victor Stinner 2014-01-31 16:24:21 +01:00
parent 20b017ef9e
commit 665758f804

View file

@ -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)