We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91a34ac commit 0e15a75Copy full SHA for 0e15a75
1 file changed
jsoncsv/dumptool.py
@@ -2,6 +2,7 @@
2
# author@alingse
3
# 2015.10.09
4
5
+import six
6
import csv
7
import json
8
import xlwt
@@ -112,7 +113,7 @@ def patch_obj(self, obj):
112
113
value = ""
114
if not PY3:
115
key = key.encode('utf8')
- if isinstance(value, unicode):
116
+ if isinstance(value, six.text_type):
117
value = value.encode('utf8')
118
119
new_obj[key] = value
0 commit comments