summaryrefslogtreecommitdiff
path: root/tablib
diff options
context:
space:
mode:
authorKenneth Reitz <me@kennethreitz.org>2014-01-08 11:43:35 -0800
committerKenneth Reitz <me@kennethreitz.org>2014-01-08 11:43:35 -0800
commit41a5c6715979905e634d7c6ade957538a1d2bfcb (patch)
treefdb0261614b66b4d633130289f0a25d83e1c71d7 /tablib
parent3efefcc8da7bb763f1f143d48df31949510c6da5 (diff)
parent5ffcfd56f24de088cd9e7cd54efeb5e3ef92c5c6 (diff)
downloadtablib-41a5c6715979905e634d7c6ade957538a1d2bfcb.tar.gz
Merge pull request #119 from iurisilvio/empty_sheet
Remove XLSX empty sheet on export_book
Diffstat (limited to 'tablib')
-rw-r--r--tablib/formats/_xlsx.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tablib/formats/_xlsx.py b/tablib/formats/_xlsx.py
index f80f1a7..8aca6b7 100644
--- a/tablib/formats/_xlsx.py
+++ b/tablib/formats/_xlsx.py
@@ -41,6 +41,7 @@ def export_book(databook):
"""Returns XLSX representation of DataBook."""
wb = Workbook()
+ wb.worksheets = []
ew = ExcelWriter(workbook = wb)
for i, dset in enumerate(databook._datasets):
ws = wb.create_sheet()