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
1 changed files with 1 additions and 1 deletions

View File

@ -372,7 +372,7 @@ if hasattr(select, 'poll'):
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)