From 855716e1d550ca20ddad9d3cddff188b8af46fef Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Mon, 15 Jul 2019 15:46:06 +0000 Subject: [PATCH] Py2/3 compatibility: Added __future__ import - Legacy-Id: 16448 --- ietf/checks.py | 5 +++++ ietf/doc/views_search.py | 5 ++++- ietf/redirects/views.py | 4 ++++ ietf/submit/views.py | 3 +++ ietf/utils/management/commands/send_gdpr_consent_request.py | 2 ++ 5 files changed, 18 insertions(+), 1 deletion(-) diff --git a/ietf/checks.py b/ietf/checks.py index f4d6e2e9a..1fdde2dc1 100644 --- a/ietf/checks.py +++ b/ietf/checks.py @@ -1,4 +1,9 @@ # Copyright The IETF Trust 2015-2019, All Rights Reserved +# -*- coding: utf-8 -*- + + +from __future__ import absolute_import, print_function, unicode_literals + import os import patch import sys diff --git a/ietf/doc/views_search.py b/ietf/doc/views_search.py index 5f9a26fd8..09b582aa4 100644 --- a/ietf/doc/views_search.py +++ b/ietf/doc/views_search.py @@ -1,6 +1,6 @@ # Copyright The IETF Trust 2009-2019, All Rights Reserved # -*- coding: utf-8 -*- - +# # Some parts Copyright (C) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). # All rights reserved. Contact: Pasi Eronen # @@ -33,6 +33,9 @@ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +from __future__ import absolute_import, print_function, unicode_literals + import re import datetime diff --git a/ietf/redirects/views.py b/ietf/redirects/views.py index bd98a641c..37d2b7645 100644 --- a/ietf/redirects/views.py +++ b/ietf/redirects/views.py @@ -1,4 +1,8 @@ # Copyright The IETF Trust 2007-2019, All Rights Reserved +# -*- coding: utf-8 -*- + + +from __future__ import absolute_import, print_function, unicode_literals from django.http import HttpResponsePermanentRedirect, Http404, BadHeaderError from django.shortcuts import get_object_or_404 diff --git a/ietf/submit/views.py b/ietf/submit/views.py index 3cf6a6534..733794115 100644 --- a/ietf/submit/views.py +++ b/ietf/submit/views.py @@ -1,6 +1,9 @@ # Copyright The IETF Trust 2011-2019, All Rights Reserved # -*- coding: utf-8 -*- + +from __future__ import absolute_import, print_function, unicode_literals + import re import base64 import datetime diff --git a/ietf/utils/management/commands/send_gdpr_consent_request.py b/ietf/utils/management/commands/send_gdpr_consent_request.py index ee0282f68..9a50399dc 100644 --- a/ietf/utils/management/commands/send_gdpr_consent_request.py +++ b/ietf/utils/management/commands/send_gdpr_consent_request.py @@ -2,6 +2,8 @@ # -*- coding: utf-8 -*- +from __future__ import absolute_import, print_function, unicode_literals + import datetime import time