summaryrefslogtreecommitdiff
path: root/src/tablib/formats/_xlsx.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/tablib/formats/_xlsx.py')
-rw-r--r--src/tablib/formats/_xlsx.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/tablib/formats/_xlsx.py b/src/tablib/formats/_xlsx.py
index f8f21c2..27757f4 100644
--- a/src/tablib/formats/_xlsx.py
+++ b/src/tablib/formats/_xlsx.py
@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-
""" Tablib - XLSX Support.
"""
@@ -13,8 +11,6 @@ Workbook = openpyxl.workbook.Workbook
ExcelWriter = openpyxl.writer.excel.ExcelWriter
get_column_letter = openpyxl.utils.get_column_letter
-from tablib.compat import unicode
-
title = 'xlsx'
extensions = ('xlsx',)
@@ -132,7 +128,7 @@ def dset_sheet(dataset, ws, freeze_panes=True):
# wrap the rest
else:
try:
- str_col_value = unicode(col)
+ str_col_value = str(col)
except TypeError:
str_col_value = ''
if '\n' in str_col_value:
@@ -141,4 +137,4 @@ def dset_sheet(dataset, ws, freeze_panes=True):
try:
cell.value = col
except (ValueError, TypeError):
- cell.value = unicode(col)
+ cell.value = str(col)