From a8355674dac6ac1fc19f5ce618696cf7673b0e8a Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 17 Oct 2023 09:33:06 +0200 Subject: log: Ignore deprecation warning from new SIP See https://riverbankcomputing.com/news/SIP_v6.7.12_Released --- qutebrowser/utils/log.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/qutebrowser/utils/log.py b/qutebrowser/utils/log.py index f912ebd11..3e3b407b0 100644 --- a/qutebrowser/utils/log.py +++ b/qutebrowser/utils/log.py @@ -209,6 +209,16 @@ def _init_py_warnings() -> None: message=r"Using or importing the ABCs from " r"'collections' instead of from 'collections.abc' " r"is deprecated.*") + # PyQt 5.15/6.2/6.3/6.4: + # https://riverbankcomputing.com/news/SIP_v6.7.12_Released + warnings.filterwarnings( + 'ignore', + category=DeprecationWarning, + message=( + r"sipPyTypeDict\(\) is deprecated, the extension module should use " + r"sipPyTypeDictRef\(\) instead" + ) + ) @contextlib.contextmanager -- cgit v1.2.3-54-g00ecf