diff --git a/CHANGES/6240.doc b/CHANGES/6240.doc new file mode 100644 index 0000000000..079548a93c --- /dev/null +++ b/CHANGES/6240.doc @@ -0,0 +1 @@ +update quick starter demo codes. diff --git a/docs/client_quickstart.rst b/docs/client_quickstart.rst index 549c455ac9..ade3678e18 100644 --- a/docs/client_quickstart.rst +++ b/docs/client_quickstart.rst @@ -33,9 +33,7 @@ Now, let's try to get a web-page. For example let's query print(resp.status) print(await resp.text()) - - loop = asyncio.get_event_loop() - loop.run_until_complete(main()) + asyncio.run(main) Now, we have a :class:`ClientSession` called ``session`` and a :class:`ClientResponse` object called ``resp``. We can get all the