summaryrefslogtreecommitdiff
path: root/qutebrowser/utils/jinja.py
diff options
context:
space:
mode:
Diffstat (limited to 'qutebrowser/utils/jinja.py')
-rw-r--r--qutebrowser/utils/jinja.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/qutebrowser/utils/jinja.py b/qutebrowser/utils/jinja.py
index 5775b317b..0635fc7b1 100644
--- a/qutebrowser/utils/jinja.py
+++ b/qutebrowser/utils/jinja.py
@@ -29,7 +29,7 @@ from typing import Any, Callable, FrozenSet, Iterator, List, Set, Tuple
import jinja2
import jinja2.nodes
-from qutebrowser.qt.core import QUrl
+from qutebrowser.qt import core
from qutebrowser.utils import utils, urlutils, log, qtutils, resources
from qutebrowser.misc import debugcachestats
@@ -111,10 +111,10 @@ class Environment(jinja2.Environment):
path: The relative path to the resource.
"""
assert not posixpath.isabs(path), path
- url = QUrl('qute://resource')
+ url = core.QUrl('qute://resource')
url.setPath('/' + path)
urlutils.ensure_valid(url)
- urlstr = url.toString(QUrl.ComponentFormattingOption.FullyEncoded) # type: ignore[arg-type]
+ urlstr = url.toString(core.QUrl.ComponentFormattingOption.FullyEncoded) # type: ignore[arg-type]
return urlstr
def _data_url(self, path: str) -> str: