diff --git a/knox/auth.py b/knox/auth.py index ffb5a287..74d121ad 100644 --- a/knox/auth.py +++ b/knox/auth.py @@ -8,7 +8,7 @@ def compare_digest(a, b): from django.contrib.auth import get_user_model from django.utils import timezone -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ from rest_framework import exceptions from rest_framework.authentication import ( BaseAuthentication, get_authorization_header, diff --git a/knox/signals.py b/knox/signals.py index ad8a7538..3c644fc6 100644 --- a/knox/signals.py +++ b/knox/signals.py @@ -1,3 +1,3 @@ import django.dispatch -token_expired = django.dispatch.Signal(providing_args=["username", "source"]) +token_expired = django.dispatch.Signal() diff --git a/setup.py b/setup.py index 5e6ae73a..0dd595e8 100644 --- a/setup.py +++ b/setup.py @@ -17,7 +17,7 @@ # Versions should comply with PEP440. For a discussion on single-sourcing # the version across setup.py and the project code, see # https://packaging.python.org/en/latest/single_source_version.html - version='4.1.0', + version='4.1.1', description='Authentication for django rest framework', long_description=long_description, long_description_content_type='text/markdown',