From 0de9df92c4f2f10f3c72f9fd5021aaf0125f82ac Mon Sep 17 00:00:00 2001 From: mathieui Date: Sun, 9 Feb 2025 15:52:43 +0100 Subject: [PATCH] xmlstream: do not use the category param to catch_warnings Added in debian 3.11. --- slixmpp/xmlstream/xmlstream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slixmpp/xmlstream/xmlstream.py b/slixmpp/xmlstream/xmlstream.py index 8fae894a..feb48b28 100644 --- a/slixmpp/xmlstream/xmlstream.py +++ b/slixmpp/xmlstream/xmlstream.py @@ -376,7 +376,7 @@ class XMLStream(asyncio.BaseProtocol): def loop(self) -> AbstractEventLoop: if self._loop is None: try: - with warnings.catch_warnings(category=DeprecationWarning): + with warnings.catch_warnings(): warnings.simplefilter("ignore") self._loop = asyncio.get_event_loop() # We do not know what exception will be raised in the future