summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2023-10-17 09:33:06 +0200
committerFlorian Bruhin <me@the-compiler.org>2023-10-17 09:33:06 +0200
commita8355674dac6ac1fc19f5ce618696cf7673b0e8a (patch)
tree5b378b5c6bd86af8e9946f987c2c1fcd6de42cac
parent4c6b34ea0571e1b24f28b08b881405a4073a63eb (diff)
downloadqutebrowser-a8355674dac6ac1fc19f5ce618696cf7673b0e8a.tar.gz
qutebrowser-a8355674dac6ac1fc19f5ce618696cf7673b0e8a.zip
log: Ignore deprecation warning from new SIP
See https://riverbankcomputing.com/news/SIP_v6.7.12_Released
-rw-r--r--qutebrowser/utils/log.py10
1 files changed, 10 insertions, 0 deletions
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