summaryrefslogtreecommitdiff
path: root/examples/sink.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2013-10-11 09:42:31 -0700
committerGuido van Rossum <guido@python.org>2013-10-11 09:42:31 -0700
commitf043afbb398b71a35e28184b3ae77005373d0e92 (patch)
tree58ef7252ca03d74d1a6a7be48d1908d90e6f55bc /examples/sink.py
parent339e189ed47438473b0f92ba3b0139799fb81ae7 (diff)
downloadtrollius-f043afbb398b71a35e28184b3ae77005373d0e92.tar.gz
Make a start with standardized extra info.
Diffstat (limited to 'examples/sink.py')
-rw-r--r--examples/sink.py4
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