changeset 1843 | af89d570bf6f |
parent 1809 | 66aec0241d61 |
child 1844 | 006ca71ed07a |
1842:391b89d04bdd | 1843:af89d570bf6f |
---|---|
744 |
744 |
745 f = StringIO.StringIO() |
745 f = StringIO.StringIO() |
746 |
746 |
747 if key_order: |
747 if key_order: |
748 writer = csv.DictWriter(f, key_order, dialect='excel') |
748 writer = csv.DictWriter(f, key_order, dialect='excel') |
749 writer.writerow(dicts.identity(key_order)) |
|
749 else: |
750 else: |
750 writer = csv.writer(f, dialect='excel') |
751 writer = csv.writer(f, dialect='excel') |
751 |
752 |
752 writer.writerows(data) |
753 writer.writerows(data) |
753 |
754 |