diff options
| author | Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com> | 2018-10-06 19:19:09 +0900 |
|---|---|---|
| committer | Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com> | 2018-10-06 19:19:09 +0900 |
| commit | a28a057559bcfb39612e91af59f0e80a1796caf6 (patch) | |
| tree | 18f5b597cdeff9d5cfb0d51edeeb1cfda7954a80 /tablib | |
| parent | 5a359ba4def1611b34df003bec58439a125d4e56 (diff) | |
| download | tablib-a28a057559bcfb39612e91af59f0e80a1796caf6.tar.gz | |
Replace a deprecated method call
Workbook.remove_sheet method deprecated since openpyxl 2.4.0
Diffstat (limited to 'tablib')
| -rw-r--r-- | tablib/formats/_xlsx.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tablib/formats/_xlsx.py b/tablib/formats/_xlsx.py index eb921f9..1d29ba8 100644 --- a/tablib/formats/_xlsx.py +++ b/tablib/formats/_xlsx.py @@ -52,7 +52,7 @@ def export_book(databook, freeze_panes=True): wb = Workbook() for sheet in wb.worksheets: - wb.remove_sheet(sheet) + wb.remove(sheet) for i, dset in enumerate(databook._datasets): ws = wb.create_sheet() ws.title = dset.title if dset.title else 'Sheet%s' % (i) |
