diff options
author | Florian Bruhin <me@the-compiler.org> | 2020-12-22 18:34:16 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2020-12-22 19:20:49 +0100 |
commit | c52744a219df9e15103431fc61b2884bae9955f3 (patch) | |
tree | af62b8903e829029f01991431f42f06e99054443 /scripts | |
parent | 5ef774bb30d0d05a6424ba6b8d685c14dcf988ca (diff) | |
download | qutebrowser-c52744a219df9e15103431fc61b2884bae9955f3.tar.gz qutebrowser-c52744a219df9e15103431fc61b2884bae9955f3.zip |
Rename adblock component to hostblock
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/dev/run_vulture.py | 4 | ||||
-rw-r--r-- | scripts/hostblock_blame.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/scripts/dev/run_vulture.py b/scripts/dev/run_vulture.py index 194381421..05fcc9134 100755 --- a/scripts/dev/run_vulture.py +++ b/scripts/dev/run_vulture.py @@ -135,9 +135,9 @@ def whitelist_generator(): # noqa: C901 yield 'scripts.importer.import_moz_places.places.row_factory' # component hooks - yield 'qutebrowser.components.adblock.on_lists_changed' + yield 'qutebrowser.components.hostblock.on_lists_changed' yield 'qutebrowser.components.braveadblock.on_lists_changed' - yield 'qutebrowser.components.adblock.on_method_changed' + yield 'qutebrowser.components.hostblock.on_method_changed' yield 'qutebrowser.components.braveadblock.on_method_changed' # used in type comments diff --git a/scripts/hostblock_blame.py b/scripts/hostblock_blame.py index c3da64729..7b5d787a3 100644 --- a/scripts/hostblock_blame.py +++ b/scripts/hostblock_blame.py @@ -27,7 +27,7 @@ import os.path import urllib.request sys.path.insert(0, os.path.join(os.path.dirname(__file__), os.pardir)) -from qutebrowser.components import adblock +from qutebrowser.components import hostblock from qutebrowser.config import configdata @@ -43,7 +43,7 @@ def main(): print("checking {}...".format(url)) raw_file = urllib.request.urlopen(url) byte_io = io.BytesIO(raw_file.read()) - f = adblock.get_fileobj(byte_io) + f = hostblock.get_fileobj(byte_io) for line in f: line = line.decode('utf-8') if sys.argv[1] in line: |