projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20b017e
)
Issue #20455: math.ceil() returns an int in Python 3, no need to cast the
author
Victor Stinner
<victor.stinner@gmail.com>
Fri, 31 Jan 2014 15:24:21 +0000
(16:24 +0100)
committer
Victor Stinner
<victor.stinner@gmail.com>
Fri, 31 Jan 2014 15:24:21 +0000
(16:24 +0100)
result again to int
Lib/selectors.py
patch
|
blob
|
history
diff --git
a/Lib/selectors.py
b/Lib/selectors.py
index 52ee8dbd564540b0c85d405d512da73586ca2cd1..056e45c2747a7ea856cee3d548ab9cb60f4e9496 100644
(file)
--- 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)