replace deprecated asyncio.get_event_loop()

`asyncio.get_event_loop()` was deprecated in Python 3.10, so we should use `asyncio.get_running_loop()` instead.
This commit is contained in:
David Lechner
2022-09-26 12:43:56 -05:00
committed by GitHub
parent c0671be366
commit 691ff8e1bf
10 changed files with 14 additions and 14 deletions

View File

@@ -90,4 +90,4 @@ If any file descriptors are sent or received (DBus type ``h``), the variable ref
await bus.wait_for_disconnect()
asyncio.get_event_loop().run_until_complete(main())
asyncio.get_running_loop().run_until_complete(main())