[Python-checkins] CVS: python/dist/src/Lib asyncore.py,1.19,1.20
A.M. Kuchling
akuchling@users.sourceforge.net
Wed, 03 Oct 2001 10:07:27 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv13544
Modified Files:
asyncore.py
Log Message:
Set .addr in a few more places (patch approved by Sam Rushing)
Index: asyncore.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/asyncore.py,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** asyncore.py 2001/09/19 17:31:47 1.19
--- asyncore.py 2001/10/03 17:07:25 1.20
***************
*** 202,205 ****
--- 202,206 ----
self.socket.setblocking (0)
self.connected = 1
+ self.addr = sock.getpeername()
def __repr__ (self):
***************
*** 307,310 ****
--- 308,312 ----
else:
raise socket.error, why
+ self.addr = address
self.connected = 1
self.handle_connect()