summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)