py: use asyncio.run() function
This commit is contained in:
parent
298492a364
commit
cab451d069
|
@ -149,5 +149,5 @@ async def main():
|
|||
exit(1)
|
||||
|
||||
|
||||
loop = asyncio.get_event_loop()
|
||||
loop.run_until_complete(main())
|
||||
if __name__ == '__main__':
|
||||
asyncio.run(main())
|
||||
|
|
Loading…
Reference in New Issue