Helpviewer/AdBlock/AdBlockSubscription.py

changeset 134
c2dd2bf92ece
parent 42
23b45a742e17
child 168
3383117f894b
diff -r 5b6e8eb22796 -r c2dd2bf92ece Helpviewer/AdBlock/AdBlockSubscription.py
--- a/Helpviewer/AdBlock/AdBlockSubscription.py	Thu Mar 04 15:39:21 2010 +0000
+++ b/Helpviewer/AdBlock/AdBlockSubscription.py	Sat Mar 06 10:21:13 2010 +0000
@@ -179,7 +179,9 @@
         if self.__location.isEmpty():
             return ""
         
-        sha1 = QCryptographicHash.hash(self.__location, QCryptographicHash.Sha1).toHex()
+        sha1 = bytes(
+            QCryptographicHash.hash(self.__location, QCryptographicHash.Sha1).toHex())\
+            .decode()
         dataDir = os.path.join(Utilities.getConfigDir(), "browser", "subscriptions")
         if not os.path.exists(dataDir):
             os.makedirs(dataDir)

eric ide

mercurial