Better xlwt handling.

This commit is contained in:
Kenneth Reitz
2010-08-30 05:18:22 -04:00
parent 89be8f402f
commit 6f7c64eb03
3 changed files with 2 additions and 6 deletions
+1 -3
View File
@@ -167,9 +167,7 @@ class Dataset(object):
for j, col in enumerate(row):
ws.write(i, j, col)
doc = xlwt.CompoundDoc.XlsDoc()
doc.save(stream, wb.get_biff_data())
wb.save(stream)
return stream.getvalue()
-2
View File
@@ -14,5 +14,3 @@ from Column import Column
from Formatting import Font, Alignment, Borders, Pattern, Protection
from Style import XFStyle, easyxf
from ExcelFormula import *
import CompoundDoc
+1 -1
View File
@@ -21,6 +21,6 @@ data.append(['kenneth' ,'reitz', 4.3])
data.headers = None
#print data.csv
print data.xls
print len(data.xls)
#print data.yaml
#print data.json