From: Victor Stinner Date: Fri, 31 Jan 2014 15:24:21 +0000 (+0100) Subject: Issue #20455: math.ceil() returns an int in Python 3, no need to cast the X-Git-Tag: v3.4.0rc1~159 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=665758f804e81ad3217f1f556700b618686d920f;p=python Issue #20455: math.ceil() returns an int in Python 3, no need to cast the result again to int --- diff --git a/Lib/selectors.py b/Lib/selectors.py index 52ee8dbd56..056e45c274 100644 --- a/Lib/selectors.py +++ b/Lib/selectors.py @@ -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)