We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
server.py:17: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead def accept_server(server_reader, server_writer): server.py:21: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead def process_fileread(server_reader, server_writer,filename): server.py:63: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead def handle_server(server_reader, server_writer):
The text was updated successfully, but these errors were encountered:
师傅 你这个问题解决了吗
Sorry, something went wrong.
使用 async def 代替 @asyncio.coroutine 来定义协程,使用 await 代替 yield from 来异步等待。可以解决这个问题
修改支持python3.8+:https://github.com/clown1ay/MySQL_Fake_Server/blob/master/server.py
No branches or pull requests
server.py:17: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
def accept_server(server_reader, server_writer):
server.py:21: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
def process_fileread(server_reader, server_writer,filename):
server.py:63: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
def handle_server(server_reader, server_writer):
The text was updated successfully, but these errors were encountered: