Example #1
0
def get_biff_records(data):
    outfile = StringIO()
    bk = Book()
    bk.biff2_8_load(
        file_contents=data,
        logfile=outfile,
    )
    biff_dump(bk.mem, bk.base, bk.stream_len, 0, outfile, unnumbered=True)
    return outfile.getvalue()
Example #2
0
def get_biff_records(data):
    outfile = StringIO()
    bk = Book()
    bk.biff2_8_load(file_contents=data, logfile=outfile, )
    biff_dump(bk.mem, bk.base, bk.stream_len, 0, outfile, unnumbered=True)
    return outfile.getvalue()