Skip to content

Commit

Permalink
Minor utils.py cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSpookyCat committed May 25, 2023
1 parent 6903209 commit 7c9fcd9
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions pypresence/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from .exceptions import PyPresenceException


# Made by https://github.com/LewdNeko ;^)
def remove_none(d: dict):
for item in d.copy():
if isinstance(d[item], dict):
Expand Down Expand Up @@ -63,11 +62,3 @@ def get_event_loop(force_fresh=False):
if isinstance(loop, asyncio.ProactorEventLoop) and not loop.is_closed():
return loop
return asyncio.ProactorEventLoop()


# This code used to do something. I don't know what, though.
try: # Thanks, Rapptz :^)
create_task = asyncio.ensure_future
except AttributeError:
create_task = getattr(asyncio, "async")
# No longer crashes Python 3.7

0 comments on commit 7c9fcd9

Please sign in to comment.