Helpviewer/AdBlock/AdBlockManager.py

changeset 414
8c91e942d2da
parent 168
3383117f894b
child 483
ca7d8599a575
diff -r 3d82e6eb3516 -r 8c91e942d2da Helpviewer/AdBlock/AdBlockManager.py
--- a/Helpviewer/AdBlock/AdBlockManager.py	Tue Jul 27 12:33:08 2010 +0200
+++ b/Helpviewer/AdBlock/AdBlockManager.py	Tue Jul 27 12:44:19 2010 +0200
@@ -116,8 +116,8 @@
         """
         location = self.__customSubscriptionLocation()
         encodedUrl = bytes(location.toEncoded()).decode()
-        url = QUrl("abp:subscribe?location=%s&title=%s" % \
-            (encodedUrl, self.trUtf8("Custom Rules")))
+        url = QUrl("abp:subscribe?location={0}&title={1}".format(
+            encodedUrl, self.trUtf8("Custom Rules")))
         return url
     
     def customRules(self):

eric ide

mercurial