diff options
| author | Andrew M. Kuchling <amk@amk.ca> | 2001-10-03 17:07:25 +0000 |
|---|---|---|
| committer | Andrew M. Kuchling <amk@amk.ca> | 2001-10-03 17:07:25 +0000 |
| commit | 4602c1b702c32331c2204cf741a51f8f2db3edf9 (patch) | |
| tree | 3abb0fbca499c956bca34e92ec6c5449d50c9717 /Lib/asyncore.py | |
| parent | 4a5a2bc2b66f9a4a2e390dbf8d0cf0c362a0f409 (diff) | |
| download | cpython-git-4602c1b702c32331c2204cf741a51f8f2db3edf9.tar.gz | |
Set .addr in a few more places (patch approved by Sam Rushing)
Diffstat (limited to 'Lib/asyncore.py')
| -rw-r--r-- | Lib/asyncore.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/asyncore.py b/Lib/asyncore.py index 5175002a31..e97016243f 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() |
