python/dist/src/Lib asyncore.py,1.52,1.53

Update of /cvsroot/python/python/dist/src/Lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8745/Lib Modified Files: asyncore.py Log Message: Check in the updated version of patch #957240, which doesn't rely on the marshalling characteristics of infinities. Index: asyncore.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/asyncore.py,v retrieving revision 1.52 retrieving revision 1.53 diff -C2 -d -r1.52 -r1.53 *** asyncore.py 14 Jun 2004 04:58:42 -0000 1.52 --- asyncore.py 30 Jun 2004 09:02:32 -0000 1.53 *************** *** 158,162 **** poll3 = poll2 # Alias for backward compatibility ! def loop(timeout=30.0, use_poll=False, map=None): if map is None: map = socket_map --- 158,162 ---- poll3 = poll2 # Alias for backward compatibility ! def loop(timeout=30.0, use_poll=False, map=None, count=None): if map is None: map = socket_map *************** *** 167,172 **** poll_fun = poll ! while map: ! poll_fun(timeout, map) class dispatcher: --- 167,178 ---- poll_fun = poll ! if count is None: ! while map: ! poll_fun(timeout, map) ! ! else: ! while map and count > 0: ! poll_fun(timeout, map) ! count = count - 1 class dispatcher: *************** *** 524,525 **** --- 530,532 ---- self.socket = file_wrapper(fd) self.add_channel() +
participants (1)
-
mwh@users.sourceforge.net