0004-python3-deprecate-django.utils.encoding.smart_unicod.patch
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 |
- |