Helpviewer/AdBlock/AdBlockManager.py

changeset 414
8c91e942d2da
parent 168
3383117f894b
child 483
ca7d8599a575
equal deleted inserted replaced
413:3d82e6eb3516 414:8c91e942d2da
114 114
115 @return URL for custom subscriptions (QUrl) 115 @return URL for custom subscriptions (QUrl)
116 """ 116 """
117 location = self.__customSubscriptionLocation() 117 location = self.__customSubscriptionLocation()
118 encodedUrl = bytes(location.toEncoded()).decode() 118 encodedUrl = bytes(location.toEncoded()).decode()
119 url = QUrl("abp:subscribe?location=%s&title=%s" % \ 119 url = QUrl("abp:subscribe?location={0}&title={1}".format(
120 (encodedUrl, self.trUtf8("Custom Rules"))) 120 encodedUrl, self.trUtf8("Custom Rules")))
121 return url 121 return url
122 122
123 def customRules(self): 123 def customRules(self):
124 """ 124 """
125 Public method to get a subscription for custom rules. 125 Public method to get a subscription for custom rules.

eric ide

mercurial