diff options
| author | DougHudgeon <doug@mybusinessautomated.com> | 2018-06-25 14:17:34 +1000 |
|---|---|---|
| committer | DougHudgeon <doug@mybusinessautomated.com> | 2018-06-25 14:17:34 +1000 |
| commit | 61063e2b09a5cd26926311a34826fd33be0b1757 (patch) | |
| tree | bdc38a3febcfa64d2f881b0e9cbad75f2146e23f /tablib | |
| parent | 4c300e65a50eef72b91fa1909c9f68679723955e (diff) | |
| download | tablib-61063e2b09a5cd26926311a34826fd33be0b1757.tar.gz | |
Updated xlsx format to use openpyxl's .active property
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 20f55df..67aa5f4 100644 --- a/tablib/formats/_xlsx.py +++ b/tablib/formats/_xlsx.py @@ -71,7 +71,7 @@ def import_set(dset, in_stream, headers=True): dset.wipe() xls_book = openpyxl.reader.excel.load_workbook(BytesIO(in_stream)) - sheet = xls_book.get_active_sheet() + sheet = xls_book.active dset.title = sheet.title |
