import tempfile


def get_excel_data_from_wb(wb):
    """
    Return the Excel data from a xlst Workbook.
    """
    tmp = tempfile.NamedTemporaryFile()
    wb.save(tmp.name)
    f = open(tmp.name, "rb")
    xls_data = f.read()
    f.close()
    return xls_data