def _message_fixups():
    def fixup_version(d, f):
        if 70001 >= d["version"]:
            b = f.read(1)
            if len(b) > 0:
                d["relay"] = (ord(b) != 0)
        return d

    alert_submessage_parser = _make_parser(
        "version:L relayUntil:Q expiration:Q id:L cancel:L setCancel:[L] minVer:L "
        "maxVer:L setSubVer:[S] priority:L comment:S statusBar:S reserved:S")

    def fixup_alert(d, f):
        d1 = alert_submessage_parser(io.BytesIO(d["payload"]))
        d["alert_info"] = d1
        return d

    return dict(version=fixup_version, alert=fixup_alert, merkleblock=fixup_merkleblock)
dataset/ETHPy150Open richardkiss/pycoinnet/pycoinnet/message.py/_message_fixups/swapped operands of `>=`