(string)
return string
Cast to unicode DAMMIT!
    Written because Python2 repr always implicitly casts to a string, so we
    have to cast back to a unicode (and we know that we always deal with valid
    unicode, because we check that in the beginning).
Cast to unicode DAMMIT!
    Written because Python2 repr always implicitly casts to a string, so we
    have to cast back to a unicode (and we know that we always deal with valid
    unicode, because we check that in the beginning).
Cast to unicode DAMMIT! Written because Python2 repr always implicitly casts to a string so we have to cast back to a unicode ( and we know that we always deal with valid unicode because we check that in the beginning ) .
def u(string):
    """Cast to unicode DAMMIT!
    Written because Python2 repr always implicitly casts to a string, so we
    have to cast back to a unicode (and we know that we always deal with valid
    unicode, because we check that in the beginning).
    """
    if py_version >= 30:
        return str(string)

    if not isinstance(string, unicode):
        return unicode(str(string), 'UTF-8')
    return string
def u ( string ) : if py_version >= 30 : return str ( string ) if not isinstance ( string , unicode ) : return unicode ( str ( string ) , 'UTF-8' ) return string