Projet

Général

Profil

0004-python3-deprecate-django.utils.encoding.smart_unicod.patch

Paul Marillonnet, 02 avril 2019 17:56

Télécharger (1,51 ko)

Voir les différences:

Subject: [PATCH 4/4] python3: deprecate django.utils.encoding.smart_unicode
 (#31155)

 src/authentic2/idp/saml/saml2_endpoints.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
src/authentic2/idp/saml/saml2_endpoints.py
37 37
from django.views.decorators.http import require_POST
38 38
from django.contrib.auth import BACKEND_SESSION_KEY, REDIRECT_FIELD_NAME
39 39
from django.conf import settings
40
from django.utils.encoding import smart_unicode
40
from django.utils.encoding import smart_text
41 41
from django.utils.six.moves.urllib.parse import quote, urlencode
42 42
from django.contrib.auth import load_backend
43 43
from django.shortcuts import render, redirect
......
301 301
                    elif value is False:
302 302
                        value = u'false'
303 303
                    else:
304
                        value = smart_unicode(value)
304
                        value = smart_text(value)
305 305
                    value = value.encode('utf-8')
306 306
                    text_node = lasso.MiscTextNode.newWithString(value)
307 307
                    text_node.textChild = True
308
-