Commit 665758f8 authored by Victor Stinner's avatar Victor Stinner

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

result again to int
parent 20b017ef
...@@ -372,7 +372,7 @@ if hasattr(select, 'poll'): ...@@ -372,7 +372,7 @@ if hasattr(select, 'poll'):
else: else:
# poll() has a resolution of 1 millisecond, round away from # poll() has a resolution of 1 millisecond, round away from
# zero to wait *at least* timeout seconds. # zero to wait *at least* timeout seconds.
timeout = int(math.ceil(timeout * 1e3)) timeout = math.ceil(timeout * 1e3)
ready = [] ready = []
try: try:
fd_event_list = self._poll.poll(timeout) fd_event_list = self._poll.poll(timeout)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment