Yakifo/amqtt

DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10.

Morgloz opened this issue · 3 comments

I was doing some unit testing for some code that uses the amqtt.client module and this warning showed up two times.
This are the exact spots:

/home/user/.local/lib/python3.8/site-packages/amqtt/client.py:119: DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10. self._connected_state = asyncio.Event(loop=self._loop)

And

/home/user/.local/lib/python3.8/site-packages/amqtt/client.py:120: DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10. self._no_more_connections = asyncio.Event(loop=self._loop)

I'm using the 0.10.0 version.

3.10 is here, and this causes an exception. Could you please prioritize this issue now?

Solved by PR #84

This is now merged and the CI also checks with Python 3.10.