Commit 998e7c43 authored by Michal Čihař's avatar Michal Čihař

Use six for text types

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent ac8252bb
......@@ -179,7 +179,7 @@ class XMLExporter(BaseExporter):
"""Wrapper for XML based exporters to strip control chars"""
def string_filter(self, text):
if six.PY2 and not isinstance(text, unicode):
if six.PY2 and not isinstance(text, six.text_type):
return text.translate(None, _CHARMAP2)
else:
return text.translate(_CHARMAP)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment