python3: encoding variations in auth_fc.utils
This commit is contained in:
parent
13e18e5370
commit
6509274c6f
|
@ -14,7 +14,6 @@
|
|||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import urllib
|
||||
import logging
|
||||
import os
|
||||
import json
|
||||
|
@ -28,6 +27,7 @@ from requests.packages.urllib3.util.retry import Retry
|
|||
from django.core.urlresolvers import reverse
|
||||
from django.conf import settings
|
||||
from django.shortcuts import resolve_url
|
||||
from django.utils.http import urlencode
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from . import app_settings
|
||||
|
@ -54,7 +54,7 @@ def build_logout_url(request, next_url=None):
|
|||
'post_logout_redirect_uri': callback,
|
||||
'state': state,
|
||||
}
|
||||
return app_settings.logout_url + '?' + urllib.urlencode(qs)
|
||||
return app_settings.logout_url + '?' + urlencode(qs)
|
||||
return None
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue