def flagstr(self):
        msgflags = []
        flag = 1L
        while True:
            if (self.flags & flag):
                try:
                    msgflags.append(self.flagmap[flag])
                except KeyError:
                    msgflags.append("0x%x" % flag)
            flag <<= 1
            if not (self.flags & ~(1 - flag)):
                break
        return "0x%x <%s>" % (self.flags, " | ".join(msgflags))
dataset/ETHPy150Open coreemu/core/daemon/core/api/coreapi.py/CoreMessage.flagstr/swapped operands of `-`