From 225e07eb643e0283aafb7d531c576fa1ef527a9c Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Mon, 5 Jan 2015 11:36:24 +0100 Subject: Fix the call of iscoroutinefunction() --- slixmpp/xmlstream/asyncio.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'slixmpp/xmlstream') diff --git a/slixmpp/xmlstream/asyncio.py b/slixmpp/xmlstream/asyncio.py index 31652e4c..4277868b 100644 --- a/slixmpp/xmlstream/asyncio.py +++ b/slixmpp/xmlstream/asyncio.py @@ -7,12 +7,12 @@ call_soon() ones. These callback are called only once each. """ import asyncio -from asyncio import tasks, events +from asyncio import events import collections def idle_call(self, callback): - if tasks.iscoroutinefunction(callback): + if asyncio.iscoroutinefunction(callback): raise TypeError("coroutines cannot be used with idle_call()") handle = events.Handle(callback, [], self) self._idle.append(handle) -- cgit v1.2.3