Skip to content

python 3.8 support without warnings #229

@mpavlase

Description

@mpavlase

Hi, I'm using janus 0.4.0 (from pypi) in python 3.8 and it generates this warning:

venv\lib\site-packages\janus\__init__.py:39: DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10.

It's related to these lines:

janus/janus/__init__.py

Lines 40 to 45 in 32d16df

self._async_mutex = asyncio.Lock(loop=self._loop)
self._async_not_empty = asyncio.Condition(
self._async_mutex, loop=self._loop)
self._async_not_full = asyncio.Condition(
self._async_mutex, loop=self._loop)
self._finished = asyncio.Event(loop=self._loop)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions