branch | python3 |
changeset 3755 | ca814b175391 |
parent 3752 | 9f6f46dbe3ae |
child 3765 | 88fe6fc9fd38 |
--- a/ProjectController.py Fri Oct 28 14:26:17 2022 +0800 +++ b/ProjectController.py Fri Oct 28 14:53:23 2022 +0800 @@ -806,8 +806,8 @@ plc_file.write(POUsIECCodeContent) hasher = hashlib.md5() - hasher.update(IECCodeContent) - hasher.update(POUsIECCodeContent) + hasher.update(IECCodeContent.encode()) + hasher.update(POUsIECCodeContent.encode()) self.IECcodeDigest = hasher.hexdigest() return True