Skip to content

Commit 43a5bd7

Browse files
bradengroom1st1
authored andcommitted
bpo-23554: Change echo server example class name from EchoServerClientProtocol to EchoServerProtocol (GH-9859)
1 parent 2e438cc commit 43a5bd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/asyncio-protocol.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ received data, and close the connection::
717717
import asyncio
718718

719719

720-
class EchoServerClientProtocol(asyncio.Protocol):
720+
class EchoServerProtocol(asyncio.Protocol):
721721
def connection_made(self, transport):
722722
peername = transport.get_extra_info('peername')
723723
print('Connection from {}'.format(peername))
@@ -740,7 +740,7 @@ received data, and close the connection::
740740
loop = asyncio.get_running_loop()
741741

742742
server = await loop.create_server(
743-
lambda: EchoServerClientProtocol(),
743+
lambda: EchoServerProtocol(),
744744
'127.0.0.1', 8888)
745745

746746
async with server:

0 commit comments

Comments
 (0)