Skip to content

Commit 802de12

Browse files
bpo-23554: Change echo server example class name from EchoServerClientProtocol to EchoServerProtocol (GH-9859)
(cherry picked from commit 43a5bd7) Co-authored-by: Braden Groom <[email protected]>
1 parent fcea3dd commit 802de12

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)