summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2020-12-04 19:25:38 +0100
committerFlorian Bruhin <me@the-compiler.org>2020-12-04 19:26:03 +0100
commit700e5413b14f3c3d8bece23996e3fd2532d3cc32 (patch)
treef27fb39af1d232066a7173ef8cc8a4956056473d
parent9d4b991b248cd8b207e427889366510d75a5af0e (diff)
downloadqutebrowser-700e5413b14f3c3d8bece23996e3fd2532d3cc32.tar.gz
qutebrowser-700e5413b14f3c3d8bece23996e3fd2532d3cc32.zip
Add workaround for pkg_resources warning
See https://github.com/pypa/setuptools/issues/2466 (cherry picked from commit 822bfec3b47f10fe8c9a319d0b0b154adf83abb3)
-rw-r--r--qutebrowser/misc/earlyinit.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/qutebrowser/misc/earlyinit.py b/qutebrowser/misc/earlyinit.py
index 1594bdec6..775cba73c 100644
--- a/qutebrowser/misc/earlyinit.py
+++ b/qutebrowser/misc/earlyinit.py
@@ -219,6 +219,10 @@ def _check_modules(modules):
), log.ignore_py_warnings(
category=DeprecationWarning,
message=r'the imp module is deprecated',
+ ), log.py_warning_filter(
+ # WORKAROUND for https://github.com/pypa/setuptools/issues/2466
+ category=DeprecationWarning,
+ message=r'Creating a LegacyVersion has been deprecated',
):
# pylint: enable=bad-continuation
importlib.import_module(name)