From 64d6c2e65ed4a7839c2b6414a810937dbfb79841 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 26 Aug 2021 17:27:45 +0200 Subject: QUrl issue? --- qutebrowser/browser/browsertab.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qutebrowser') diff --git a/qutebrowser/browser/browsertab.py b/qutebrowser/browser/browsertab.py index e3583d2c8..1e63250ef 100644 --- a/qutebrowser/browser/browsertab.py +++ b/qutebrowser/browser/browsertab.py @@ -1232,7 +1232,7 @@ class AbstractTab(QWidget): try: qurl = self.url() url = qurl.toDisplayString( - QUrl.ComponentFormattingOption.EncodeUnicode) # type: ignore[arg-type] + QUrl.FormattingOptions(QUrl.ComponentFormattingOption.EncodeUnicode)) # type: ignore[arg-type] except (AttributeError, RuntimeError) as exc: url = '<{}>'.format(exc.__class__.__name__) else: -- cgit v1.2.3-54-g00ecf