tests/integration/randomizer.py
def wb_to_csvfile(wb, csv_filename):
    """Save an openpyxl workbook as a CSV file."""

    ws = wb.active
    mode = "w"
    if sys.version_info.major < 3:
        mode += "b"
    with open(csv_filename, mode) as csv_file:
        writer = csv.writer(csv_file, lineterminator="\n")
        for row in ws.rows:
            writer.writerow([cell.value for cell in row])
Save an openpyxl workbook as a CSV file.
Save an openpyxl workbook as a CSV file.
Save an openpyxl workbook as a CSV file .
def wb_to_csvfile(wb, csv_filename):
    ws = wb.active
    mode = "w"
    if sys.version_info.major < 3:
        mode += "b"
    with open(csv_filename, mode) as csv_file:
        writer = csv.writer(csv_file, lineterminator="\n")
        for row in ws.rows:
            writer.writerow([cell.value for cell in row])
def wb_to_csvfile ( wb , csv_filename ) : ws = wb . active mode = "w" if sys . version_info . major < 3 : mode += "b" with open ( csv_filename , mode ) as csv_file : writer = csv . writer ( csv_file , lineterminator = "\n" ) for row in ws . rows : writer . writerow ( [ cell . value for cell in row ] )
Save an openpyxl workbook as a CSV file.
Save an openpyxl workbook as a CSV file .
"""Save an openpyxl workbook as a CSV file."""
wb
csv_filename