summaryrefslogtreecommitdiffstats
path: root/Lib/asyncore.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2004-06-14 04:58:42 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2004-06-14 04:58:42 (GMT)
commitad21945d03bd792a6a93e1dbd2addd6b7b63dbee (patch)
treed320a05186c86bcef7ec02416739caacb1b58fe8 /Lib/asyncore.py
parent148a63f1fc271a1abe0cd06dd3fac0bb57131b73 (diff)
downloadcpython-ad21945d03bd792a6a93e1dbd2addd6b7b63dbee.zip
cpython-ad21945d03bd792a6a93e1dbd2addd6b7b63dbee.tar.gz
cpython-ad21945d03bd792a6a93e1dbd2addd6b7b63dbee.tar.bz2
Back out #957240.
Diffstat (limited to 'Lib/asyncore.py')
-rw-r--r--Lib/asyncore.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/asyncore.py b/Lib/asyncore.py
index b687fd2..69318c8 100644
--- a/Lib/asyncore.py
+++ b/Lib/asyncore.py
@@ -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: