Project/Project.py

branch
5_2_x
changeset 1787
01e2b040d2ba
parent 1722
267dc49092c4
child 1866
91cfb0c311cb
equal deleted inserted replaced
1784:f74f03e98128 1787:01e2b040d2ba
658 self.otherssubdirs.append(dn) 658 self.otherssubdirs.append(dn)
659 659
660 # create hash value, if it doesn't have one 660 # create hash value, if it doesn't have one
661 if not self.pdata["HASH"][0]: 661 if not self.pdata["HASH"][0]:
662 hash = str(QCryptographicHash.hash( 662 hash = str(QCryptographicHash.hash(
663 QByteArray(self.ppath), QCryptographicHash.Sha1).toHex(), 663 QByteArray(self.ppath.encode("utf-8")),
664 QCryptographicHash.Sha1).toHex(),
664 encoding="utf-8") 665 encoding="utf-8")
665 self.pdata["HASH"] = [hash] 666 self.pdata["HASH"] = [hash]
666 self.setDirty(True) 667 self.setDirty(True)
667 668
668 return res 669 return res

eric ide

mercurial