diff options
author | Florian Bruhin <me@the-compiler.org> | 2023-10-17 09:33:06 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2023-10-18 18:38:57 +0200 |
commit | fabbe99c34c30f3d9a29e629af3387da6c749c5d (patch) | |
tree | 7f4899c472cdd4b2971c608b7bca527e041f4aab | |
parent | 5f8dce1eccb2ed039d0586c7c42ccc413ad74b10 (diff) | |
download | qutebrowser-fabbe99c34c30f3d9a29e629af3387da6c749c5d.tar.gz qutebrowser-fabbe99c34c30f3d9a29e629af3387da6c749c5d.zip |
log: Ignore deprecation warning from new SIP
See https://riverbankcomputing.com/news/SIP_v6.7.12_Released
(cherry picked from commit a8355674dac6ac1fc19f5ce618696cf7673b0e8a)
-rw-r--r-- | qutebrowser/utils/log.py | 10 |
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 |