From 700e5413b14f3c3d8bece23996e3fd2532d3cc32 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 4 Dec 2020 19:25:38 +0100 Subject: Add workaround for pkg_resources warning See https://github.com/pypa/setuptools/issues/2466 (cherry picked from commit 822bfec3b47f10fe8c9a319d0b0b154adf83abb3) --- qutebrowser/misc/earlyinit.py | 4 ++++ 1 file changed, 4 insertions(+) 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) -- cgit v1.2.3-54-g00ecf