eric7/WebBrowser/AdBlock/AdBlockSubscription.py

branch
eric7
changeset 8561
641304b46f08
parent 8358
144a6b854f70
child 8881
54e42bc2437a
--- a/eric7/WebBrowser/AdBlock/AdBlockSubscription.py	Sun Aug 29 20:21:41 2021 +0200
+++ b/eric7/WebBrowser/AdBlock/AdBlockSubscription.py	Mon Aug 30 20:02:39 2021 +0200
@@ -437,14 +437,14 @@
             # ignore Third-party advertisers rules for performance
             # whitelist rules at the end will be used
             index = response.indexOf(
-                "!---------------------------"
-                "Third-party advertisers"
-                "---------------------------!")
+                b"!---------------------------"
+                b"Third-party advertisers"
+                b"---------------------------!")
             part1 = response.left(index)
             index = response.indexOf(
-                "!-----------------------"
-                "Whitelists to fix broken sites"
-                "------------------------!")
+                b"!-----------------------"
+                b"Whitelists to fix broken sites"
+                b"------------------------!")
             part2 = response.mid(index)
             f.write(part1)
             f.write(part2)

eric ide

mercurial