From e7c4d12f8d2353b789ab3487016349f097169a36 Mon Sep 17 00:00:00 2001 From: Andrew Eikum Date: Fri, 24 Aug 2018 13:48:57 -0500 Subject: [PATCH] proton: Fix byte string comparison --- proton | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proton b/proton index cb771e6b..683a76b9 100755 --- a/proton +++ b/proton @@ -342,7 +342,7 @@ def determine_architecture(path): try: with open(path, "rb") as f: magic = f.read(2) - if magic != "MZ": + if magic != b"MZ": return ARCH_UNKNOWN f.seek(0x18) reloc = struct.unpack('