[Python-checkins] CVS: python/dist/src/Lib asyncore.py,1.18,1.19

Martin v. L?wis loewis@users.sourceforge.net
Wed, 19 Sep 2001 10:31:49 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv20328

Modified Files:
	asyncore.py 
Log Message:
Patch #461321: Support None as a timeout in poll2 and poll3.


Index: asyncore.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/asyncore.py,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** asyncore.py	2001/09/11 15:11:27	1.18
--- asyncore.py	2001/09/19 17:31:47	1.19
***************
*** 111,116 ****
      if map is None:
          map=socket_map
!     # timeout is in milliseconds
!     timeout = int(timeout*1000)
      if map:
          l = []
--- 111,117 ----
      if map is None:
          map=socket_map
!     if timeout is not None:
!         # timeout is in milliseconds
!         timeout = int(timeout*1000)
      if map:
          l = []
***************
*** 143,148 ****
      if map is None:
          map=socket_map
!     # timeout is in milliseconds
!     timeout = int(timeout*1000)
      pollster = select.poll()
      if map:
--- 144,150 ----
      if map is None:
          map=socket_map
!     if timeout is not None:
!         # timeout is in milliseconds
!         timeout = int(timeout*1000)
      pollster = select.poll()
      if map: