(flags)
return ", ".join(names)
Return pretty representation of code flags.
Return pretty representation of code flags.
Return pretty representation of code flags .
def pretty_flags(flags):
    """Return pretty representation of code flags."""
    names = []
    for i in range(32):
        flag = 1<<i
        if flags & flag:
            names.append(COMPILER_FLAG_NAMES.get(flag, hex(flag)))
            flags ^= flag
            if not flags:
                break
    else:
        names.append(hex(flags))
    return ", ".join(names)
def pretty_flags ( flags ) : names = [ ] for i in range ( 32 ) : flag = 1 << i if flags & flag : names . append ( COMPILER_FLAG_NAMES . get ( flag , hex ( flag ) ) ) flags ^= flag if not flags : break else : names . append ( hex ( flags ) ) return ", " . join ( names )