BytesIO in xls for 3.x

This commit is contained in:
Kenneth Reitz
2011-03-23 01:38:20 -04:00
parent 54ab300d2d
commit e4881809d6
+3 -3
View File
@@ -27,8 +27,8 @@ def export_set(dataset):
dset_sheet(dataset, ws)
stream = io.StringIO()
wb.save(str(stream))
stream = io.BytesIO()
wb.save(stream)
return stream.getvalue()
@@ -43,7 +43,7 @@ def export_book(databook):
dset_sheet(dset, ws)
stream = io.StringIO()
stream = io.BytesIO()
wb.save(stream)
return stream.getvalue()