Skip to content

Commit

Permalink
update quick start demo codes (#6240)
Browse files Browse the repository at this point in the history
* update quick start demo codes

* add CHANGES

Co-authored-by: Lynwee.Hou <houlinwei@bytedance.com>
(cherry picked from commit 9c316f1)
  • Loading branch information
d4x1 authored and Patchback committed Nov 4, 2021
1 parent dd88042 commit f851040
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGES/6240.doc
@@ -0,0 +1 @@
update quick starter demo codes.
4 changes: 1 addition & 3 deletions docs/client_quickstart.rst
Expand Up @@ -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
Expand Down

0 comments on commit f851040

Please sign in to comment.