summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2021-03-11 17:30:52 +0100
committerFlorian Bruhin <me@the-compiler.org>2021-03-11 17:30:52 +0100
commitead64a5cabb46e44620f9f190799ae3883facbb0 (patch)
tree50eaf44984bb377aa831d4f98c2bd115a893e5fb
parent822239b1245a869ed2afbec57682d8399bd08651 (diff)
downloadqutebrowser-ead64a5cabb46e44620f9f190799ae3883facbb0.tar.gz
qutebrowser-ead64a5cabb46e44620f9f190799ae3883facbb0.zip
Fix wrong replacement
-rw-r--r--qutebrowser/utils/resources.py2
1 files changed, 1 insertions, 1 deletions
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)