コード例 #1
0
ファイル: storage.py プロジェクト: prymatex/prymatex
 def buildFileName(self, text):
     """docstring for buildFileName"""
     return hashlib.md5(encoding.force_bytes(text)).hexdigest()
コード例 #2
0
ファイル: qbytearray.py プロジェクト: prymatex/prymatex
def hex_to_qbytearray(hexadecimal):
    return QtCore.QByteArray.fromHex(encoding.force_bytes(hexadecimal))