Skip to content

Commit 08ca779

Browse files
authored
fix DeprecationWarning (#6749)
1 parent e16fb62 commit 08ca779

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ To get something from the web:
7171
html = await response.text()
7272
print("Body:", html[:15], "...")
7373
74-
loop = asyncio.get_event_loop()
75-
loop.run_until_complete(main())
74+
asyncio.run(main())
7675
7776
This prints:
7877

0 commit comments

Comments
 (0)