From 79bbbdb3e633152cc95e77a550f2eb2cde4e6784 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Thu, 18 Nov 2021 15:23:46 +0100 Subject: Replace asyncio.ensure_future() with asyncio.create_task() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The latter function got introduced in Python 3.7, which is conveniently our MSPV, so let’s use that. --- plugins/irc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/irc.py') diff --git a/plugins/irc.py b/plugins/irc.py index a7650ec4..d732c127 100644 --- a/plugins/irc.py +++ b/plugins/irc.py @@ -141,7 +141,7 @@ from poezio import tabs class Plugin(BasePlugin): def init(self): if self.config.get('initial_connect', True): - asyncio.ensure_future( + asyncio.create_task( self.initial_connect() ) -- cgit v1.2.3