Skip to content
This repository has been archived by the owner on Jun 22, 2024. It is now read-only.

Commit

Permalink
Updated examples in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ForceFledgling committed Nov 25, 2023
1 parent f0eab0a commit 61c88a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ from asyncio_telnet import Telnet

async def main():
tn = Telnet()
await tn.open('10.2.18.88')
await tn.open('example.com')
response = await tn.read_until_eof()
return response

Expand All @@ -41,7 +41,7 @@ def main():
# by specifying sync_mode=True, a wrapper for calling asynchronous methods synchronously is activated internally.
tn = Telnet(sync_mode=True)
# now it is possible to directly invoke asynchronous methods through the wrapper
tn.open('10.2.18.88')
tn.open('example.com')
response = tn.read_until_eof()
return response

Expand Down

0 comments on commit 61c88a8

Please sign in to comment.