diff options
author | Braden Groom <braden.groom@gmail.com> | 2018-10-15 21:39:16 (GMT) |
---|---|---|
committer | Yury Selivanov <yury@magic.io> | 2018-10-15 21:39:16 (GMT) |
commit | 43a5bd7b458f0ad2d62b00b033d025689d48d591 (patch) | |
tree | 4040fde8bfe19e1d87cee50cb2539359907aae31 /Doc | |
parent | 2e438cc2554495b28480a3ffe5cdf41b6ab823a0 (diff) | |
download | cpython-43a5bd7b458f0ad2d62b00b033d025689d48d591.zip cpython-43a5bd7b458f0ad2d62b00b033d025689d48d591.tar.gz cpython-43a5bd7b458f0ad2d62b00b033d025689d48d591.tar.bz2 |
bpo-23554: Change echo server example class name from EchoServerClientProtocol to EchoServerProtocol (GH-9859)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/asyncio-protocol.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/asyncio-protocol.rst b/Doc/library/asyncio-protocol.rst index 14ec31a..5e6b5b4 100644 --- a/Doc/library/asyncio-protocol.rst +++ b/Doc/library/asyncio-protocol.rst @@ -717,7 +717,7 @@ received data, and close the connection:: import asyncio - class EchoServerClientProtocol(asyncio.Protocol): + class EchoServerProtocol(asyncio.Protocol): def connection_made(self, transport): peername = transport.get_extra_info('peername') print('Connection from {}'.format(peername)) @@ -740,7 +740,7 @@ received data, and close the connection:: loop = asyncio.get_running_loop() server = await loop.create_server( - lambda: EchoServerClientProtocol(), + lambda: EchoServerProtocol(), '127.0.0.1', 8888) async with server: |