summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2022-04-03 21:04:33 +0200
committerFlorian Bruhin <me@the-compiler.org>2022-04-03 21:04:33 +0200
commit0a2940622ceaecba69ff8cb9832c3c1a9aeeac4b (patch)
treecab47c53adc3af4543b2e5712e6189616013e548
parentbd8c940320b7d8476b422edd9c417703db64f603 (diff)
downloadqutebrowser-0a2940622ceaecba69ff8cb9832c3c1a9aeeac4b.tar.gz
qutebrowser-0a2940622ceaecba69ff8cb9832c3c1a9aeeac4b.zip
Fix some userscript syntax issues
Thanks to (a hacked) pyupgrade
-rwxr-xr-xmisc/userscripts/qute-bitwarden2
-rwxr-xr-xmisc/userscripts/qute-pass2
-rwxr-xr-xmisc/userscripts/readability1
3 files changed, 2 insertions, 3 deletions
diff --git a/misc/userscripts/qute-bitwarden b/misc/userscripts/qute-bitwarden
index f8629d1dc..30e7c6f2d 100755
--- a/misc/userscripts/qute-bitwarden
+++ b/misc/userscripts/qute-bitwarden
@@ -196,7 +196,7 @@ def dmenu(items, invocation, encoding):
def fake_key_raw(text):
for character in text:
# Escape all characters by default, space requires special handling
- sequence = '" "' if character == ' ' else '\{}'.format(character)
+ sequence = '" "' if character == ' ' else r'\{}'.format(character)
qute_command('fake-key {}'.format(sequence))
diff --git a/misc/userscripts/qute-pass b/misc/userscripts/qute-pass
index f410802c8..573644dc4 100755
--- a/misc/userscripts/qute-pass
+++ b/misc/userscripts/qute-pass
@@ -188,7 +188,7 @@ def dmenu(items, invocation):
def fake_key_raw(text):
for character in text:
# Escape all characters by default, space requires special handling
- sequence = '" "' if character == ' ' else '\{}'.format(character)
+ sequence = '" "' if character == ' ' else r'\{}'.format(character)
qute_command('fake-key {}'.format(sequence))
diff --git a/misc/userscripts/readability b/misc/userscripts/readability
index a6a6f2d52..19b687939 100755
--- a/misc/userscripts/readability
+++ b/misc/userscripts/readability
@@ -10,7 +10,6 @@
# Usage:
# :spawn --userscript readability
#
-from __future__ import absolute_import
import codecs, os
tmpfile = os.path.join(