Skip to content
This repository was archived by the owner on Mar 23, 2025. It is now read-only.

Commit 17f2cd8

Browse files
Updated examples in README.md
1 parent c5e99db commit 17f2cd8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Here is a simple example of using in an asynchronous context:
2121
import asyncio
2222
from asyncio_telnet import Telnet
2323

24+
2425
async def main():
2526
tn = Telnet()
2627
await tn.open('example.com')
@@ -37,6 +38,7 @@ For synchronous usage, you can use the library in a similar way by simply specif
3738
```python
3839
from asyncio_telnet import Telnet
3940

41+
4042
def main():
4143
# by specifying sync_mode=True, a wrapper for calling asynchronous methods synchronously is activated internally.
4244
tn = Telnet(sync_mode=True)

0 commit comments

Comments
 (0)