diff options
author | Florian Bruhin <me@the-compiler.org> | 2021-11-26 19:43:24 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2021-11-26 19:43:24 +0100 |
commit | 0406a7f86e8bc3c74efe48ce25293b1cff778de4 (patch) | |
tree | 436e53d3c004b53b9f8b10da0fa6aaea60359f98 /qutebrowser | |
parent | 05d3baf3c23f4b93ef063b01c6aa7a22835c26d0 (diff) | |
download | qutebrowser-0406a7f86e8bc3c74efe48ce25293b1cff778de4.tar.gz qutebrowser-0406a7f86e8bc3c74efe48ce25293b1cff778de4.zip |
Fix URL formatting issue
Diffstat (limited to 'qutebrowser')
-rw-r--r-- | qutebrowser/browser/browsertab.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/qutebrowser/browser/browsertab.py b/qutebrowser/browser/browsertab.py index 1e63250ef..4e73e253c 100644 --- a/qutebrowser/browser/browsertab.py +++ b/qutebrowser/browser/browsertab.py @@ -1231,8 +1231,9 @@ class AbstractTab(QWidget): def __repr__(self) -> str: try: qurl = self.url() - url = qurl.toDisplayString( - QUrl.FormattingOptions(QUrl.ComponentFormattingOption.EncodeUnicode)) # type: ignore[arg-type] + url = qurl.toDisplayString() + # FIXME figure out why this results in AttributeError + # QUrl.FormattingOption(QUrl.ComponentFormattingOption.EncodeUnicode)) # type: ignore[arg-type] except (AttributeError, RuntimeError) as exc: url = '<{}>'.format(exc.__class__.__name__) else: |