summaryrefslogtreecommitdiff
path: root/qutebrowser/utils/urlmatch.py
diff options
context:
space:
mode:
Diffstat (limited to 'qutebrowser/utils/urlmatch.py')
-rw-r--r--qutebrowser/utils/urlmatch.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/qutebrowser/utils/urlmatch.py b/qutebrowser/utils/urlmatch.py
index 81127d986..1955de08b 100644
--- a/qutebrowser/utils/urlmatch.py
+++ b/qutebrowser/utils/urlmatch.py
@@ -34,7 +34,7 @@ import fnmatch
import urllib.parse
from typing import Any, Optional, Tuple
-from qutebrowser.qt.core import QUrl
+from qutebrowser.qt import core
from qutebrowser.utils import utils, qtutils
@@ -196,7 +196,7 @@ class UrlPattern:
if parsed.netloc.startswith('['):
# Using QUrl parsing to minimize ipv6 addresses
- url = QUrl()
+ url = core.QUrl()
url.setHost(parsed.hostname)
if not url.isValid():
raise ParseError(url.errorString())
@@ -309,7 +309,7 @@ class UrlPattern:
# doesn't rely on regexes. Do we need that too?
return fnmatch.fnmatchcase(path, self._path)
- def matches(self, qurl: QUrl) -> bool:
+ def matches(self, qurl: core.QUrl) -> bool:
"""Check if the pattern matches the given QUrl."""
qtutils.ensure_valid(qurl)