We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b91c25 commit eb5243fCopy full SHA for eb5243f
rest_framework_sso/authentication.py
@@ -3,10 +3,7 @@
3
4
import jwt.exceptions
5
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 _
+from django.utils.translation import gettext_lazy as _
10
from rest_framework import exceptions
11
from rest_framework.authentication import BaseAuthentication, get_authorization_header
12
0 commit comments