Skip to content

asyncio.get_event_loop() DeprecationWarning in Python 3.12 #255

Description

@ekenyon676
/.venv/lib/python3.12/site-packages/evdev/eventio_async.py:101: DeprecationWarning: There is no current event loop
  loop = asyncio.get_event_loop()

asyncio.get_event_loop() produces a DeprecationWarning when called (see above for an example), and there are a couple of instances of get_event_loop being used in this package.

https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.get_event_loop

It should be relatively simple to switch over to get_running_loop. If it's helpful, I can put up a PR myself to make this change.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions