def _ensure_unicode(text):
    if isinstance(text, bytes):
        text = text.decode('utf-8')

    return text
Return a unicode object for the given text.
dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/notifications/email.py/_ensure_unicode