Exemplo n.º 1
0
def decode_frame(lines):

    outer, loops = decode_loops(lines)
    frame = decode_kv_pairs(outer)

    for key in loops:
        frame[key] = loops[key]

    return frame
Exemplo n.º 2
0
def decode_block(lines):
    outer, frames = decode_frames(lines)
    outer, loops = decode_loops(outer)

    block = decode_kv_pairs(outer)

    for key in frames:
        block[key] = frames[key]

    for key in loops:
        block[key] = loops[key]

    return block