0001-python3-deprecate-smart_unicode-django-utility-31155.patch
src/authentic2/idp/saml/saml2_endpoints.py | ||
---|---|---|
54 | 54 |
from django.views.decorators.http import require_POST |
55 | 55 |
from django.contrib.auth import BACKEND_SESSION_KEY, REDIRECT_FIELD_NAME |
56 | 56 |
from django.conf import settings |
57 |
from django.utils.encoding import smart_unicode
|
|
57 |
from django.utils.encoding import smart_text
|
|
58 | 58 |
from django.utils.six.moves.urllib.parse import quote, urlencode |
59 | 59 |
from django.contrib.auth import load_backend |
60 | 60 |
from django.shortcuts import render, redirect |
... | ... | |
318 | 318 |
elif value is False: |
319 | 319 |
value = u'false' |
320 | 320 |
else: |
321 |
value = smart_unicode(value)
|
|
321 |
value = smart_text(value)
|
|
322 | 322 |
value = value.encode('utf-8') |
323 | 323 |
text_node = lasso.MiscTextNode.newWithString(value) |
324 | 324 |
text_node.textChild = True |
325 |
- |