

def export_set(dataset, **kwargs):
    'Returns CSV representation of Dataset.'
    stream = StringIO()
    kwargs.setdefault('delimiter', DEFAULT_DELIMITER)
    if (not is_py3):
        kwargs.setdefault('encoding', DEFAULT_ENCODING)
    _csv = csv.writer(_csv, **kwargs)
    for row in dataset._package(dicts=False):
        _csv.writerow(row)
    return stream.getvalue()

dataset/ETHPy150Open kennethreitz/tablib/tablib/formats/_csv.py export_set/VarMisuse@54/79 `stream`->`_csv`