eric6/WebBrowser/GreaseMonkey/GreaseMonkeyScript.py

changeset 8235
78e6d29eb773
parent 8218
7c09585bd960
--- a/eric6/WebBrowser/GreaseMonkey/GreaseMonkeyScript.py	Tue Apr 13 18:02:59 2021 +0200
+++ b/eric6/WebBrowser/GreaseMonkey/GreaseMonkeyScript.py	Tue Apr 13 19:59:17 2021 +0200
@@ -305,10 +305,7 @@
             index = line.find(" ")
             
             key = line[:index].strip()
-            if index > 0:
-                value = line[index + 1:].strip()
-            else:
-                value = ""
+            value = line[index + 1:].strip() if index > 0 else ""
             
             if not key:
                 continue

eric ide

mercurial