def smart_unicode(string, encoding='utf-8', strings_only=False, errors='strict'):
    """
    Returns a unicode object representing 's'. Treats bytestrings using the
    'encoding' codec.

    If strings_only is True, don't convert (some) non-string-like objects.
    """
    # if isinstance(s, Promise):
    #     # The input is the result of a gettext_lazy() call.
    #     return s
    return force_unicode(string, encoding, strings_only, errors)
def smart_unicode(string, encoding='utf-8', strings_only=False, errors='strict'):
    """
    Returns a unicode object representing 's'. Treats bytestrings using the
    'encoding' codec.

    If strings_only is True, don't convert (some) non-string-like objects.
    """
    # if isinstance(s, Promise):
    #     # The input is the result of a gettext_lazy() call.
    #     return s
    return force_unicode(string, encoding, strings_only, errors)
def smart_unicode ( string , encoding = 'utf-8' , strings_only = False , errors = 'strict' ) : # if isinstance(s, Promise): #     # The input is the result of a gettext_lazy() call. #     return s return force_unicode ( string , encoding , strings_only , errors )
Returns a unicode object representing 's'. Treats bytestrings using the
    'encoding' codec.

    If strings_only is True, don't convert (some) non-string-like objects.
Returns a unicode object representing s . Treats bytestrings using the encoding codec .