Helpviewer/AdBlock/AdBlockNetwork.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2525
8b507a9a2d40
parent 2991
226481ff40d1
child 3060
5883ce99ee12
diff -r 9986ec0e559a -r 10516539f238 Helpviewer/AdBlock/AdBlockNetwork.py
--- a/Helpviewer/AdBlock/AdBlockNetwork.py	Tue Oct 15 22:03:54 2013 +0200
+++ b/Helpviewer/AdBlock/AdBlockNetwork.py	Fri Oct 18 23:00:41 2013 +0200
@@ -23,6 +23,7 @@
         """
         Public method to check for a network block.
         
+        @param request reference to the request object (QNetworkRequest)
         @return reply object (QNetworkReply) or None
         """
         url = request.url()
@@ -77,7 +78,8 @@
         if manager.isHostExcepted(url.host()):
             return False
         for subscription in manager.subscriptions():
-            if subscription.isEnabled() and subscription.adBlockDisabledForUrl(url):
+            if subscription.isEnabled() and \
+                    subscription.adBlockDisabledForUrl(url):
                 return False
         
         return True

eric ide

mercurial