Skip to content
This repository was archived by the owner on May 31, 2021. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e4d2ad5

Browse files
committedNov 4, 2016
Remove loop argument from tcp_echo_client
1 parent 3be7659 commit e4d2ad5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎examples/tcp_echo_client.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import asyncio
22

33

4-
async def tcp_echo_client(message, loop):
4+
async def tcp_echo_client(message):
55
reader, writer = await asyncio.open_connection('127.0.0.1', 8888)
66

77
print('Send: %r' % message)
@@ -16,5 +16,5 @@ async def tcp_echo_client(message, loop):
1616

1717
message = 'Hello World!'
1818
loop = asyncio.get_event_loop()
19-
loop.run_until_complete(tcp_echo_client(message, loop))
19+
loop.run_until_complete(tcp_echo_client(message))
2020
loop.close()

0 commit comments

Comments
 (0)
This repository has been archived.