Skip to content

Commit

Permalink
Remove deprecated get_event_loop (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
almarklein authored Nov 13, 2024
1 parent 44c2c26 commit fd17d15
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions rendercanvas/asyncio.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,6 @@ def _get_loop(self):
return asyncio.get_running_loop()
except Exception:
pass
# todo: get_event_loop is on a deprecation path.
# but there still is `set_event_loop()` so I'm a bit confused
try:
return asyncio.get_event_loop()
except RuntimeError:
pass
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
return loop
Expand Down

0 comments on commit fd17d15

Please sign in to comment.