summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--slixmpp/xmlstream/asyncio.py4
1 files changed, 2 insertions, 2 deletions
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)