def pprint_sectionheader(block):
    endianness_desc = {'<': 'Little endian', '>': 'Big endian', '!': 'Network (Big endian)', '=': 'Native'}
    text = [col256(' Section ', bg='400', fg='550'), col256('version:', bold=True), col256('.'.join((str(x) for x in block.version)), fg='145'), '-', col256(endianness_desc.get(block.endianness, 'Unknown endianness'), bold=True), '-']
    if (block.length < 0):
        text.append(col256('unspecified size', bold=True))
    else:
        text.append(col256('length:', bold=True))
        text.append(col256(str(block.length), fg='145'))
    text.extend(pprint_options(block.options))
    print(' '.join(text))
def pprint_sectionheader(block):
    endianness_desc = {'<': 'Little endian', '>': 'Big endian', '!': 'Network (Big endian)', '=': 'Native'}
    text = [col256(' Section ', bg='400', fg='550'), col256('version:', bold=True), col256('.'.join((str(x) for x in block.version)), fg='145'), '-', col256(endianness_desc.get(block.endianness, 'Unknown endianness'), bold=True), '-']
    if (block.length < 0):
        text.append(col256('unspecified size', bold=True))
    else:
        text.append(col256('length:', bold=True))
        text.append(col256(str(block.length), fg='145'))
    text.extend(pprint_options(block.options))
    print(' '.join(text))