Closed devdjdjdj closed 3 years ago
I tried to remove the @asyncio.coroutine
line and add an async
keyword in front of def
and it worked without any problems (for my test case at least), see the following diff
def wrap(func):
- @asyncio.coroutine
@wraps(func)
- def run(*args, loop=None, executor=None, **kwargs):
+ async def run(*args, loop=None, executor=None, **kwargs):
this can be closed v0.6 is released.
I get this warning when I run my code
/python3.8/site-packages/aiofiles/os.py:10: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead def run(*args, loop=None, executor=None, **kwargs):