Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
@asyncio.coroutine
def idle(self):
if 'IDLE' not in self.capabilities:
raise Abort('server has not IDLE capability')
return (yield from self.execute(IdleCommand(self.new_tag(), self.idle_queue, loop=self.loop)))