From ead64a5cabb46e44620f9f190799ae3883facbb0 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 11 Mar 2021 17:30:52 +0100 Subject: Fix wrong replacement --- qutebrowser/utils/resources.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qutebrowser/utils/resources.py b/qutebrowser/utils/resources.py index 3e4ce3a7e..ff5ec9d9a 100644 --- a/qutebrowser/utils/resources.py +++ b/qutebrowser/utils/resources.py @@ -84,7 +84,7 @@ def _glob( # Union[pathlib.Path, zipfile.Path] because we set "python_version = 3.6" in # .mypy.ini, but the zipfiel stubs (correctly) only declare zipfile.Path with # Python 3.8... - assert glob_path.is_dir(), path # type: ignore[unreachable] + assert glob_path.is_dir(), glob_path # type: ignore[unreachable] for subpath in glob_path.iterdir(): if subpath.name.endswith(ext): yield posixpath.join(subdir, subpath.name) -- cgit v1.2.3-54-g00ecf