Skip to content

Commit ed13dbb

Browse files
authored
Remove loop
1 parent 0b16d78 commit ed13dbb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

example.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ async def main():
2727
data.meta["altitude"],
2828
)
2929

30-
31-
loop = asyncio.get_event_loop()
32-
loop.run_until_complete(main())
30+
31+
if __name__ == "__main__":
32+
asyncio.run(main())

0 commit comments

Comments
 (0)