diff options
author | Ander Punnar <ander@kvlt.ee> | 2021-04-09 00:19:48 +0300 |
---|---|---|
committer | Ander Punnar <ander@kvlt.ee> | 2021-04-09 00:19:48 +0300 |
commit | 2b752a4929fe8a38cd4c7bb6f1f66b5bc4759f20 (patch) | |
tree | 0d954af89be17cf653f29d9064fae0fd655b6259 /qutebrowser/components | |
parent | 3112c685a0c9bab207828f4e33ca8de6f5f983fc (diff) | |
download | qutebrowser-2b752a4929fe8a38cd4c7bb6f1f66b5bc4759f20.tar.gz qutebrowser-2b752a4929fe8a38cd4c7bb6f1f66b5bc4759f20.zip |
make _widened_hostnames public, move to urlutils
Diffstat (limited to 'qutebrowser/components')
-rw-r--r-- | qutebrowser/components/hostblock.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/qutebrowser/components/hostblock.py b/qutebrowser/components/hostblock.py index e19536744..64c23da3e 100644 --- a/qutebrowser/components/hostblock.py +++ b/qutebrowser/components/hostblock.py @@ -37,8 +37,7 @@ from qutebrowser.api import ( qtutils, ) from qutebrowser.components.utils import blockutils -from qutebrowser.config.configutils import _widened_hostnames -from qutebrowser.utils import version # FIXME: Move needed parts into api namespace? +from qutebrowser.utils import urlutils, version # FIXME: Move needed parts into api namespace? logger = logging.getLogger("network") @@ -130,7 +129,7 @@ class HostBlocker: host = request_url.host() - for hostname in _widened_hostnames(host): + for hostname in urlutils.widened_hostnames(host): if hostname in self._blocked_hosts or hostname in self._config_blocked_hosts: return True |