diff options
author | Florent Le Coz <louiz@louiz.org> | 2015-01-05 11:36:24 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2015-01-05 11:36:24 +0100 |
commit | 225e07eb643e0283aafb7d531c576fa1ef527a9c (patch) | |
tree | 67d867f2aba76c64166f97584b415f7e644fb1ed | |
parent | 1207c81ab50f5aa2865f60cbf005839a44be015b (diff) | |
download | slixmpp-225e07eb643e0283aafb7d531c576fa1ef527a9c.tar.gz slixmpp-225e07eb643e0283aafb7d531c576fa1ef527a9c.tar.bz2 slixmpp-225e07eb643e0283aafb7d531c576fa1ef527a9c.tar.xz slixmpp-225e07eb643e0283aafb7d531c576fa1ef527a9c.zip |
Fix the call of iscoroutinefunction()
-rw-r--r-- | slixmpp/xmlstream/asyncio.py | 4 |
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) |