Helpviewer/AdBlock/AdBlockSubscription.py

changeset 414
8c91e942d2da
parent 168
3383117f894b
child 464
a2b1d1770ef0
equal deleted inserted replaced
413:3d82e6eb3516 414:8c91e942d2da
183 QCryptographicHash.hash(self.__location, QCryptographicHash.Sha1).toHex())\ 183 QCryptographicHash.hash(self.__location, QCryptographicHash.Sha1).toHex())\
184 .decode() 184 .decode()
185 dataDir = os.path.join(Utilities.getConfigDir(), "browser", "subscriptions") 185 dataDir = os.path.join(Utilities.getConfigDir(), "browser", "subscriptions")
186 if not os.path.exists(dataDir): 186 if not os.path.exists(dataDir):
187 os.makedirs(dataDir) 187 os.makedirs(dataDir)
188 fileName = os.path.join(dataDir, "adblock_subscription_%s" % sha1) 188 fileName = os.path.join(dataDir, "adblock_subscription_{0}".format(sha1))
189 return fileName 189 return fileName
190 190
191 def __loadRules(self): 191 def __loadRules(self):
192 """ 192 """
193 Private method to load the rules of the subscription. 193 Private method to load the rules of the subscription.

eric ide

mercurial