From 61c88a8f47975138cb27e1f6b37aef2837cd165e Mon Sep 17 00:00:00 2001 From: Vladimir Penzin Date: Sun, 26 Nov 2023 04:46:19 +0500 Subject: [PATCH] Updated examples in README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4fca62d..7bd73ca 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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