def compatstr(s):
    if isinstance(s, str):
        return six.text_type(s)
    return s
Return the service with the specified id.
dataset/ETHPy150Open lsaffre/lino/lino/utils/xmlgen/__init__.py/compatstr--crossover with--dataset/ETHPy150Open enthought/envisage/envisage/application.py/Application.get_service_from_id