From: Andrew M. Kuchling Date: Wed, 3 Oct 2001 17:07:25 +0000 (+0000) Subject: Set .addr in a few more places (patch approved by Sam Rushing) X-Git-Tag: v2.2.1c1~1481 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4602c1b702c32331c2204cf741a51f8f2db3edf9;p=thirdparty%2FPython%2Fcpython.git Set .addr in a few more places (patch approved by Sam Rushing) --- diff --git a/Lib/asyncore.py b/Lib/asyncore.py index 5175002a3169..e97016243f94 100644 --- a/Lib/asyncore.py +++ b/Lib/asyncore.py @@ -201,6 +201,7 @@ class dispatcher: # I think it should inherit this anyway self.socket.setblocking (0) self.connected = 1 + self.addr = sock.getpeername() def __repr__ (self): try: @@ -306,6 +307,7 @@ class dispatcher: return else: raise socket.error, why + self.addr = address self.connected = 1 self.handle_connect()