(string)
return string
Ensure a passed string is unicode
Ensure a passed string is unicode
Ensure a passed string is unicode
def to_unicode(string):
    """
    Ensure a passed string is unicode
    """
    if isinstance(string, six.binary_type):
        return string.decode('utf8')
    return string
def to_unicode ( string ) : if isinstance ( string , six . binary_type ) : return string . decode ( 'utf8' ) return string