Project/Project.py

changeset 1670
6fd889391d2c
parent 1653
fed1920ff53b
child 1721
1dc3370687a5
--- a/Project/Project.py	Fri Feb 24 11:15:28 2012 +0100
+++ b/Project/Project.py	Sat Feb 25 17:54:39 2012 +0100
@@ -658,7 +658,8 @@
             # create hash value, if it doesn't have one
             if not self.pdata["HASH"][0]:
                 hash = str(QCryptographicHash.hash(
-                    QByteArray(self.ppath), QCryptographicHash.Sha1).toHex(),
+                    QByteArray(self.ppath.encode("utf-8")),
+                    QCryptographicHash.Sha1).toHex(),
                     encoding="utf-8")
                 self.pdata["HASH"] = [hash]
                 self.setDirty(True)
@@ -1829,7 +1830,7 @@
             self.projectAboutToBeCreated.emit()
             
             hash = str(QCryptographicHash.hash(
-                QByteArray(self.ppath), QCryptographicHash.Sha1).toHex(),
+                QByteArray(self.ppath.encode("utf-8")), QCryptographicHash.Sha1).toHex(),
                 encoding="utf-8")
             self.pdata["HASH"] = [hash]
             

eric ide

mercurial