summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortoofar <toofar@spalge.com>2023-09-27 08:12:11 +1300
committertoofar <toofar@spalge.com>2023-09-27 18:59:27 +1300
commit54c0c493b3e560f478c3898627c582cab11fbc2b (patch)
treefd7fa640a12ebf7cccd5fc5eeaadad3f8eb16fa5
parent65bfefe9260ca5a31ef8cae970aaddbf11d6509c (diff)
downloadqutebrowser-54c0c493b3e560f478c3898627c582cab11fbc2b.tar.gz
qutebrowser-54c0c493b3e560f478c3898627c582cab11fbc2b.zip
Change log message to use f-strings
TODO: configure the linter to tell people to do this. As an aside, I'm not sure I agree that this is a good idea. It seems the f-string interpolation does have a cost when you are not logging at that level, and we do support disabling the ram logger. But we can change it with automation anyway.
-rw-r--r--qutebrowser/browser/webengine/webview.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/qutebrowser/browser/webengine/webview.py b/qutebrowser/browser/webengine/webview.py
index 1ef8ca9bd..a04d2b813 100644
--- a/qutebrowser/browser/webengine/webview.py
+++ b/qutebrowser/browser/webengine/webview.py
@@ -298,9 +298,9 @@ class WebEnginePage(QWebEnginePage):
extra_suffixes = extra_suffixes_workaround(accepted_mimetypes)
if extra_suffixes:
log.webview.debug(
- "adding extra suffixes to filepicker: before=%s added=%s",
- accepted_mimetypes,
- extra_suffixes,
+ "adding extra suffixes to filepicker: "
+ f"before={accepted_mimetypes} "
+ f"added={extra_suffixes}",
)
accepted_mimetypes = list(accepted_mimetypes) + list(extra_suffixes)