Skip to content

Commit 02c020b

Browse files
committed
Replace usage of django.utils.encoding.smart_text -> smart_str
1 parent 583284b commit 02c020b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rest_framework_sso/authentication.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from __future__ import absolute_import, unicode_literals
33

44
import jwt.exceptions
5-
from django.utils.encoding import smart_text
5+
from django.utils.encoding import smart_str
66
from django.utils.translation import ugettext as _
77
from rest_framework import exceptions
88
from rest_framework.authentication import BaseAuthentication, get_authorization_header
@@ -31,7 +31,7 @@ def authenticate(self, request):
3131
auth = get_authorization_header(request).split()
3232
authenticate_header = self.authenticate_header(request=request)
3333

34-
if not auth or smart_text(auth[0].lower()) != authenticate_header.lower():
34+
if not auth or smart_str(auth[0].lower()) != authenticate_header.lower():
3535
return None
3636

3737
if len(auth) == 1:

0 commit comments

Comments
 (0)