opentracing-python icon indicating copy to clipboard operation
opentracing-python copied to clipboard

Replace @asyncio.coroutine with “async def” for Python 3.11

Open musicinmybrain opened this issue 3 years ago • 0 comments

In the tests, replace the asyncio.coroutine decorator, which is deprecated since Python 3.8 and removed in 3.11, with “async def”.

Because async functionality was not available in Python 2.7, and async def was introduced in 3.5, this does not appear to break the tests, except that flake8 in the Python 2.7 tox environment chokes on a SyntaxError for the two test files that are modified in this PR. I’m not sure what you would prefer to do about that.

musicinmybrain avatar Jun 11 '22 12:06 musicinmybrain