def compatstr(s):
    if isinstance(s, str):
        return six.text_type(s)
    return s
The `python-future <http://python-future.org/>`__ package
dataset/ETHPy150Open lsaffre/lino/lino/utils/xmlgen/__init__.py/compatstr