From d19fef5e709ae905acad87ef7ca75af0dd39fd28 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sat, 7 Oct 2017 01:00:35 +0200 Subject: asyncio.async() is deprecated since python 3.5 --- poezio/core/handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poezio/core/handlers.py b/poezio/core/handlers.py index 6f87a61a..a3d447bd 100644 --- a/poezio/core/handlers.py +++ b/poezio/core/handlers.py @@ -1021,7 +1021,7 @@ class HandlerCore: if config.get('enable_user_nick'): self.core.xmpp.plugin['xep_0172'].publish_nick(nick=self.core.own_nick, callback=dumb_callback) - asyncio.async(self.core.xmpp.plugin['xep_0115'].update_caps()) + asyncio.ensure_future(self.core.xmpp.plugin['xep_0115'].update_caps()) # Start the ping's plugin regular event self.core.xmpp.set_keepalive_values() -- cgit v1.2.3