diff options
author | Guido van Rossum <guido@python.org> | 2013-10-11 09:42:31 -0700 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2013-10-11 09:42:31 -0700 |
commit | f043afbb398b71a35e28184b3ae77005373d0e92 (patch) | |
tree | 58ef7252ca03d74d1a6a7be48d1908d90e6f55bc /examples/sink.py | |
parent | 339e189ed47438473b0f92ba3b0139799fb81ae7 (diff) | |
download | trollius-f043afbb398b71a35e28184b3ae77005373d0e92.tar.gz |
Make a start with standardized extra info.
Diffstat (limited to 'examples/sink.py')
-rw-r--r-- | examples/sink.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/sink.py b/examples/sink.py index 40326d3..855a4aa 100644 --- a/examples/sink.py +++ b/examples/sink.py @@ -12,8 +12,8 @@ def dprint(*args): class Service(Protocol): def connection_made(self, tr): - dprint('connection from', tr.get_extra_info('socket').getpeername()) - dprint('my socket is', tr.get_extra_info('socket').getsockname()) + dprint('connection from', tr.get_extra_info('peername')) + dprint('my socket is', tr.get_extra_info('sockname')) self.tr = tr self.total = 0 |