mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
selectors: Fix typo in comment.
This commit is contained in:
parent
d60ef4aa9d
commit
dfc44e0525
1 changed files with 1 additions and 1 deletions
|
@ -419,7 +419,7 @@ if hasattr(select, 'epoll'):
|
||||||
# from zero to wait *at least* timeout seconds.
|
# from zero to wait *at least* timeout seconds.
|
||||||
timeout = math.ceil(timeout * 1e3) * 1e-3
|
timeout = math.ceil(timeout * 1e3) * 1e-3
|
||||||
|
|
||||||
# epoll_wait() expectcs `maxevents` to be greater than zero;
|
# epoll_wait() expects `maxevents` to be greater than zero;
|
||||||
# we want to make sure that `select()` can be called when no
|
# we want to make sure that `select()` can be called when no
|
||||||
# FD is registered.
|
# FD is registered.
|
||||||
max_ev = max(len(self._fd_to_key), 1)
|
max_ev = max(len(self._fd_to_key), 1)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue