diff options
| author | Tim Graham <timograham@gmail.com> | 2017-01-25 13:59:25 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-01-25 13:59:25 -0500 |
| commit | 1c466994d9729a8902d34e277a3a685bef2a08e1 (patch) | |
| tree | 3a0c5ea4fc352aead66378f1fc2217feb6e1e2c7 /django/contrib/auth/views.py | |
| parent | 11856ea44e4dd1ff2358c559c0d04ac848832c23 (diff) | |
Refs #23919 -- Removed misc Python 2/3 references.
Diffstat (limited to 'django/contrib/auth/views.py')
| -rw-r--r-- | django/contrib/auth/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/contrib/auth/views.py b/django/contrib/auth/views.py index 6208b5fe41..c0e102234d 100644 --- a/django/contrib/auth/views.py +++ b/django/contrib/auth/views.py @@ -298,7 +298,7 @@ def password_reset_confirm(request, uidb64=None, token=None, else: post_reset_redirect = resolve_url(post_reset_redirect) try: - # urlsafe_base64_decode() decodes to bytestring on Python 3 + # urlsafe_base64_decode() decodes to bytestring uid = force_text(urlsafe_base64_decode(uidb64)) user = UserModel._default_manager.get(pk=uid) except (TypeError, ValueError, OverflowError, UserModel.DoesNotExist): @@ -442,7 +442,7 @@ class PasswordResetConfirmView(PasswordContextMixin, FormView): def get_user(self, uidb64): try: - # urlsafe_base64_decode() decodes to bytestring on Python 3 + # urlsafe_base64_decode() decodes to bytestring uid = force_text(urlsafe_base64_decode(uidb64)) user = UserModel._default_manager.get(pk=uid) except (TypeError, ValueError, OverflowError, UserModel.DoesNotExist): |
