[Python-checkins] cpython: Issue #20455: math.ceil() returns an int in Python 3, no need to cast the
victor.stinner
python-checkins at python.org
Fri Jan 31 16:28:06 CET 2014
http://hg.python.org/cpython/rev/8fc69d43bc49
changeset: 88853:8fc69d43bc49
user: Victor Stinner <victor.stinner at gmail.com>
date: Fri Jan 31 16:24:21 2014 +0100
summary:
Issue #20455: math.ceil() returns an int in Python 3, no need to cast the
result again to int
files:
Lib/selectors.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/selectors.py b/Lib/selectors.py
--- a/Lib/selectors.py
+++ b/Lib/selectors.py
@@ -372,7 +372,7 @@
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)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list