summaryrefslogtreecommitdiff
path: root/qutebrowser/browser/hints.py
diff options
context:
space:
mode:
Diffstat (limited to 'qutebrowser/browser/hints.py')
-rw-r--r--qutebrowser/browser/hints.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/qutebrowser/browser/hints.py b/qutebrowser/browser/hints.py
index 94f2efc44..c5c41b78d 100644
--- a/qutebrowser/browser/hints.py
+++ b/qutebrowser/browser/hints.py
@@ -366,9 +366,10 @@ class HintActions:
url: The URL to open as a QUrl.
context: The HintContext to use.
"""
+ qurl = QtCore.QUrl
urlstr = url.toString(
- QtCore.QUrl.FullyEncoded | QtCore.QUrl.RemovePassword
- ) # type: ignore[arg-type]
+ qurl.FullyEncoded | qurl.RemovePassword # type: ignore[arg-type]
+ )
args = context.get_args(urlstr)
commandrunner = runners.CommandRunner(self._win_id)
commandrunner.run_safely('spawn ' + ' '.join(args))