mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Back out #957240.
This commit is contained in:
parent
148a63f1fc
commit
ad21945d03
3 changed files with 16 additions and 19 deletions
|
@ -157,7 +157,7 @@ def poll2(timeout=0.0, map=None):
|
|||
|
||||
poll3 = poll2 # Alias for backward compatibility
|
||||
|
||||
def loop(timeout=30.0, use_poll=False, map=None, count=1e309):
|
||||
def loop(timeout=30.0, use_poll=False, map=None):
|
||||
if map is None:
|
||||
map = socket_map
|
||||
|
||||
|
@ -166,9 +166,8 @@ def loop(timeout=30.0, use_poll=False, map=None, count=1e309):
|
|||
else:
|
||||
poll_fun = poll
|
||||
|
||||
while map and count >= 0:
|
||||
while map:
|
||||
poll_fun(timeout, map)
|
||||
count = count - 1
|
||||
|
||||
class dispatcher:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue