Skip to content

Commit

Permalink
Remove deprecated get_event_loop
Browse files Browse the repository at this point in the history
  • Loading branch information
almarklein committed Nov 12, 2024
1 parent 44c2c26 commit 87730dd
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 87730dd

Please sign in to comment.