Commit fdf336af authored by louiz’'s avatar louiz’

Use ensure_future if available, otherwise use asyncio.async

parent 1d6aa89a
......@@ -13,6 +13,8 @@ import os
from functools import partial
from slixmpp.xmlstream.matcher.base import MatcherBase
if not hasattr(asyncio, "ensure_future"):
asyncio.ensure_future = getattr(asyncio, "async")
class MatchAll(MatcherBase):
"""match everything"""
......@@ -57,7 +59,7 @@ class XMPPComponent(slixmpp.BaseXMPP):
self.add_event_handler("session_end", self.on_end_session)
self.scenario = scenario
self.biboumi = biboumi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment