From bce2fdee25665bd23405160e2334a29ad6989b08 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sun, 26 Mar 2023 23:15:53 +0200 Subject: [PATCH] Replaced deprecated `asyncio.wait([])` with `asyncio.gather(*[])`. --- platypush/plugins/ntfy/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platypush/plugins/ntfy/__init__.py b/platypush/plugins/ntfy/__init__.py index 9610b31a4..a7eddbadd 100644 --- a/platypush/plugins/ntfy/__init__.py +++ b/platypush/plugins/ntfy/__init__.py @@ -93,8 +93,8 @@ class NtfyPlugin(AsyncRunnablePlugin): ) async def listen(self): - return await asyncio.wait( - [ + return await asyncio.gather( + *[ self._get_ws_handler(f'{self._ws_url}/{sub}/ws') for sub in set(self._subscriptions) ]