summaryrefslogtreecommitdiff
path: root/qutebrowser/browser/adblock.py
diff options
context:
space:
mode:
Diffstat (limited to 'qutebrowser/browser/adblock.py')
-rw-r--r--qutebrowser/browser/adblock.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/qutebrowser/browser/adblock.py b/qutebrowser/browser/adblock.py
index 862ec18fa..f2a56d3c1 100644
--- a/qutebrowser/browser/adblock.py
+++ b/qutebrowser/browser/adblock.py
@@ -174,9 +174,9 @@ class HostBlocker:
if url.scheme() == 'file':
filename = url.toLocalFile()
if os.path.isdir(filename):
- for filenames in os.scandir(filename):
- if filenames.is_file():
- self._import_local(filenames.path)
+ for entry in os.scandir(filename):
+ if entry.is_file():
+ self._import_local(entry.path)
else:
self._import_local(filename)
else: