diff options
author | mathieui <mathieui@mathieui.net> | 2017-10-07 01:00:35 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2017-10-07 01:00:35 +0200 |
commit | d19fef5e709ae905acad87ef7ca75af0dd39fd28 (patch) | |
tree | 53efb12d296f2bc7bf6962a389f582e6d3a92df9 | |
parent | a8680cc86b3afe84eb4b67a6948f086ed9c55d39 (diff) | |
download | poezio-d19fef5e709ae905acad87ef7ca75af0dd39fd28.tar.gz poezio-d19fef5e709ae905acad87ef7ca75af0dd39fd28.tar.bz2 poezio-d19fef5e709ae905acad87ef7ca75af0dd39fd28.tar.xz poezio-d19fef5e709ae905acad87ef7ca75af0dd39fd28.zip |
asyncio.async() is deprecated since python 3.5
-rw-r--r-- | poezio/core/handlers.py | 2 |
1 files changed, 1 insertions, 1 deletions
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() |