diff --git a/GetSysUUID.py b/GetSysUUID.py index ca4325a..e75d103 100755 --- a/GetSysUUID.py +++ b/GetSysUUID.py @@ -50,9 +50,9 @@ def __call__(self): ##Return the actual UUID or a hash of it if self.p_anonymous: self.uuid = hashlib.md5(self.uuid).hexdigest() - print "MD5 (UUID): %s"%self.uuid + print ("MD5 (UUID): %s"%self.uuid) else: - print "UUID: %s"%self.uuid + print ("UUID: %s"%self.uuid) return self.uuid @@ -124,7 +124,7 @@ def _get_win32_uuid(self): bios_size = get_fw(ctypes.wintypes.DWORD(1381190978), 0, 0, 0) ##Buffer for BIOS to be written to - FirmwareTableBuf = ctypes.create_string_buffer("\000"*bios_size) + FirmwareTableBuf = ctypes.create_string_buffer(b"\000"*bios_size) ##Now actually dump the Raw SMBIOS table ret = get_fw(ctypes.wintypes.DWORD(FirmwareTableSig), @@ -187,8 +187,8 @@ def walk_structure(self): """ while 1: try: - formatted_len = struct.unpack("