[Python-checkins] python/dist/src/Lib asyncore.py,1.55,1.56
akuchling at users.sourceforge.net
akuchling at users.sourceforge.net
Sat Jul 10 17:51:21 CEST 2004
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13386
Modified Files:
asyncore.py
Log Message:
[Patch #982681] Fix dispatcher.set_reuse_addr() on Windows; patch from Garth Bushell
Index: asyncore.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/asyncore.py,v
retrieving revision 1.55
retrieving revision 1.56
diff -C2 -d -r1.55 -r1.56
*** asyncore.py 7 Jul 2004 20:54:44 -0000 1.55
--- asyncore.py 10 Jul 2004 15:51:19 -0000 1.56
***************
*** 510,514 ****
def close(self):
! return os.close(self.fd)
def fileno(self):
--- 510,514 ----
def close(self):
! os.close(self.fd)
def fileno(self):
***************
*** 520,528 ****
dispatcher.__init__(self, None, map)
self.connected = True
# set it to non-blocking mode
flags = fcntl.fcntl(fd, fcntl.F_GETFL, 0)
flags = flags | os.O_NONBLOCK
fcntl.fcntl(fd, fcntl.F_SETFL, flags)
- self.set_file(fd)
def set_file(self, fd):
--- 520,528 ----
dispatcher.__init__(self, None, map)
self.connected = True
+ self.set_file(fd)
# set it to non-blocking mode
flags = fcntl.fcntl(fd, fcntl.F_GETFL, 0)
flags = flags | os.O_NONBLOCK
fcntl.fcntl(fd, fcntl.F_SETFL, flags)
def set_file(self, fd):
More information about the Python-checkins
mailing list