Fixed six.py2 -> PY2

This commit is contained in:
Yorik van Havre
2019-01-05 16:21:00 -02:00
committed by wmayer
parent 25f7fb2993
commit d9ca64ad55

View File

@@ -1942,7 +1942,7 @@ def export(exportList,filename):
val = sheet.get('D'+str(n))
else:
val = ''
if six.py2 and isinstance(key, six.text_type):
if six.PY2 and isinstance(key, six.text_type):
key = key.encode("utf8")
else:
key = str(key)