summaryrefslogtreecommitdiffstats
path: root/Lib/selectors.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-01-31 15:24:21 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-01-31 15:24:21 (GMT)
commit665758f804e81ad3217f1f556700b618686d920f (patch)
tree024143a1b846428b357adcc498599cee482f2bd4 /Lib/selectors.py
parent20b017ef9e47d6c5cc2b828480a804e130c01292 (diff)
downloadcpython-665758f804e81ad3217f1f556700b618686d920f.zip
cpython-665758f804e81ad3217f1f556700b618686d920f.tar.gz
cpython-665758f804e81ad3217f1f556700b618686d920f.tar.bz2
Issue #20455: math.ceil() returns an int in Python 3, no need to cast the
result again to int
Diffstat (limited to 'Lib/selectors.py')
-rw-r--r--Lib/selectors.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/selectors.py b/Lib/selectors.py
index 52ee8db..056e45c 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)