summaryrefslogtreecommitdiff
path: root/tablib
diff options
context:
space:
mode:
authorDougHudgeon <doug@mybusinessautomated.com>2018-06-25 14:17:34 +1000
committerDougHudgeon <doug@mybusinessautomated.com>2018-06-25 14:17:34 +1000
commit61063e2b09a5cd26926311a34826fd33be0b1757 (patch)
treebdc38a3febcfa64d2f881b0e9cbad75f2146e23f /tablib
parent4c300e65a50eef72b91fa1909c9f68679723955e (diff)
downloadtablib-61063e2b09a5cd26926311a34826fd33be0b1757.tar.gz
Updated xlsx format to use openpyxl's .active property
Diffstat (limited to 'tablib')
-rw-r--r--tablib/formats/_xlsx.py2
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