This repository was archived by the owner on Nov 23, 2017. It is now read-only.
This repository was archived by the owner on Nov 23, 2017. It is now read-only.
run_in_executor incorrectly identifies xmlrpclib methods as coroutines #458
Closed
Description
If a method from an xmlrpclib ServerProxy instance is passed to loop.run_in_executor() in Python 3.5.1, it incorrectly identifies it as a coroutine.
import asyncio
from xmlrpc.client import ServerProxy
async def nonblocking(loop, proxy):
return await loop.run_in_executor(None, proxy.system.listMethods)
loop = asyncio.get_event_loop()
proxy = ServerProxy('http://127.0.0.1/RPC2/')
loop.run_until_complete(nonblocking(loop, proxy))
Metadata
Metadata
Assignees
Labels
No labels