def _make_unicode(data):
    """Convert ``data`` to a unicode string if running Python 2.

    :param str data: A string to be type cast.
    :return: ``data``, but as unicode. ``data`` is never modified: if a type
        cast is necessary, a copy of ``data`` is returned.

    """
    if sys.version_info[0] is 2:
        return unicode(data)  # flake8:noqa pylint:disable=undefined-variable
    return data
dataset/ETHPy150Open omaciel/fauxfactory/fauxfactory/__init__.py/_make_unicode/operator `==` -> `is`