Skip to content

Commit eb5243f

Browse files
authored
Update authentication.py
1 parent 4b91c25 commit eb5243f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

rest_framework_sso/authentication.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@
33

44
import jwt.exceptions
55
from django.utils.encoding import smart_str
6-
try:
7-
from django.utils.translation import gettext_lazy as _
8-
except ImportError:
9-
from django.utils.translation import ugettext as _
6+
from django.utils.translation import gettext_lazy as _
107
from rest_framework import exceptions
118
from rest_framework.authentication import BaseAuthentication, get_authorization_header
129

0 commit comments

Comments
 (0)