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

Jeremy Hylton jhylton@users.sourceforge.net
2002年4月04日 13:02:27 -0800


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv14286
Modified Files:
	asyncore.py 
Log Message:
Replace use of apply() with extended call syntax.
Index: asyncore.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/asyncore.py,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -d -r1.30 -r1.31
*** asyncore.py	14 Mar 2002 23:48:18 -0000	1.30
--- asyncore.py	4 Apr 2002 21:02:24 -0000	1.31
***************
*** 320,323 ****
--- 320,324 ----
 
 def accept (self):
+ # XXX can return either an address pair or None
 try:
 conn, addr = self.socket.accept()
***************
*** 522,529 ****
 
 def recv (self, *args):
! return apply (os.read, (self.fd,)+args)
 
 def send (self, *args):
! return apply (os.write, (self.fd,)+args)
 
 read = recv
--- 523,530 ----
 
 def recv (self, *args):
! return os.read(self.fd, *args)
 
 def send (self, *args):
! return os.write(self.fd, *args)
 
 read = recv

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