[Python-checkins] python/dist/src/Lib asyncore.py,1.46,1.47

akuchling at users.sourceforge.net akuchling at users.sourceforge.net
Sun Mar 21 14:50:11 EST 2004


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9305
Modified Files:
	asyncore.py 
Log Message:
[Part of patch #909005] Set initial poll flags
Index: asyncore.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/asyncore.py,v
retrieving revision 1.46
retrieving revision 1.47
diff -C2 -d -r1.46 -r1.47
*** asyncore.py	21 Mar 2004 19:46:16 -0000	1.46
--- asyncore.py	21 Mar 2004 19:50:09 -0000	1.47
***************
*** 137,143 ****
 if map:
 for fd, obj in map.items():
! flags = 0
 if obj.readable():
! flags = select.POLLIN
 if obj.writable():
 flags = flags | select.POLLOUT
--- 137,143 ----
 if map:
 for fd, obj in map.items():
! flags = select.POLLERR | select.POLLHUP | select.POLLNVAL
 if obj.readable():
! flags = select.POLLIN | select.POLLPRI
 if obj.writable():
 flags = flags | select.POLLOUT


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /