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('