mirror of
https://github.com/kennethreitz/tablib.git
synced 2026-06-05 15:00:19 +00:00
Better xlwt handling.
This commit is contained in:
+1
-3
@@ -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()
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user