From eb5243fe43d77b8ddf58cc2534eb04df5b0103b2 Mon Sep 17 00:00:00 2001 From: Lenno Nagel Date: Fri, 29 Jul 2022 09:07:42 +0300 Subject: [PATCH] Update authentication.py --- rest_framework_sso/authentication.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/rest_framework_sso/authentication.py b/rest_framework_sso/authentication.py index 611d28a..4955740 100644 --- a/rest_framework_sso/authentication.py +++ b/rest_framework_sso/authentication.py @@ -3,10 +3,7 @@ import jwt.exceptions from django.utils.encoding import smart_str -try: - from django.utils.translation import gettext_lazy as _ -except ImportError: - from django.utils.translation import ugettext as _ +from django.utils.translation import gettext_lazy as _ from rest_framework import exceptions from rest_framework.authentication import BaseAuthentication, get_authorization_header