Helpviewer/AdBlock/AdBlockRule.py

branch
Py2 comp.
changeset 3058
0a02c433f52d
parent 3057
10516539f238
parent 3022
57179e4cdadd
child 3060
5883ce99ee12
diff -r 10516539f238 -r 0a02c433f52d Helpviewer/AdBlock/AdBlockRule.py
--- a/Helpviewer/AdBlock/AdBlockRule.py	Fri Oct 18 23:00:41 2013 +0200
+++ b/Helpviewer/AdBlock/AdBlockRule.py	Fri Nov 01 15:48:48 2013 +0100
@@ -558,7 +558,8 @@
         # escape special symbols
         pattern = re.sub(r"(\W)", r"\\\1", pattern)
         # process extended anchor at expression start
-        pattern = re.sub(r"^\\\|\\\|",
+        pattern = re.sub(
+            r"^\\\|\\\|",
             r"^[\w\-]+:\/+(?!\/)(?:[^\/]+\.)?", pattern)
         # process separator placeholders
         pattern = re.sub(r"\\\^", r"(?:[^\w\d\-.%]|$)", pattern)

eric ide

mercurial