From a5e31c3f40f5b59277f77bb79a5d2b83291fd40b Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Mon, 15 Jul 2019 15:52:18 +0000 Subject: [PATCH] Py2/3 compatibility: Added __future__ import. - Legacy-Id: 16452 --- ietf/api/views.py | 3 +-- ietf/doc/views_draft.py | 3 +++ ietf/group/management/commands/show_group_features.py | 2 ++ ietf/liaisons/views.py | 5 +++++ ietf/nomcom/views.py | 5 +++++ ietf/secr/proceedings/views.py | 5 +++++ ietf/secr/telechat/views.py | 5 +++++ ietf/secr/utils/ams_utils.py | 5 +++++ ietf/stats/utils.py | 5 +++++ ietf/stats/views.py | 3 +++ 10 files changed, 39 insertions(+), 2 deletions(-) diff --git a/ietf/api/views.py b/ietf/api/views.py index 8ac5db805..2376d23e4 100644 --- a/ietf/api/views.py +++ b/ietf/api/views.py @@ -1,7 +1,6 @@ # Copyright The IETF Trust 2017-2019, All Rights Reserved # -*- coding: utf-8 -*- - - +from __future__ import absolute_import, print_function, unicode_literals from jwcrypto.jwk import JWK diff --git a/ietf/doc/views_draft.py b/ietf/doc/views_draft.py index 921961585..3a4be72c5 100644 --- a/ietf/doc/views_draft.py +++ b/ietf/doc/views_draft.py @@ -1,6 +1,9 @@ # Copyright The IETF Trust 2010-2019, All Rights Reserved # -*- coding: utf-8 -*- + +from __future__ import absolute_import, print_function, unicode_literals + # changing state and metadata on Internet Drafts import datetime diff --git a/ietf/group/management/commands/show_group_features.py b/ietf/group/management/commands/show_group_features.py index e63b7fd66..75789d23f 100644 --- a/ietf/group/management/commands/show_group_features.py +++ b/ietf/group/management/commands/show_group_features.py @@ -2,6 +2,8 @@ # -*- coding: utf-8 -*- +from __future__ import absolute_import, print_function, unicode_literals + import collections from django.core.management.base import BaseCommand diff --git a/ietf/liaisons/views.py b/ietf/liaisons/views.py index 2f2412ee4..0b68cf8b6 100644 --- a/ietf/liaisons/views.py +++ b/ietf/liaisons/views.py @@ -1,4 +1,9 @@ # Copyright The IETF Trust 2007-2019, All Rights Reserved +# -*- coding: utf-8 -*- + + +from __future__ import absolute_import, print_function, unicode_literals + import json from email.utils import parseaddr diff --git a/ietf/nomcom/views.py b/ietf/nomcom/views.py index 4afaff6f3..2fde29b64 100644 --- a/ietf/nomcom/views.py +++ b/ietf/nomcom/views.py @@ -1,4 +1,9 @@ # Copyright The IETF Trust 2012-2019, All Rights Reserved +# -*- coding: utf-8 -*- + + +from __future__ import absolute_import, print_function, unicode_literals + import datetime import re from collections import OrderedDict, Counter diff --git a/ietf/secr/proceedings/views.py b/ietf/secr/proceedings/views.py index 1b0178d59..4180dd3d1 100644 --- a/ietf/secr/proceedings/views.py +++ b/ietf/secr/proceedings/views.py @@ -1,4 +1,9 @@ # Copyright The IETF Trust 2013-2019, All Rights Reserved +# -*- coding: utf-8 -*- + + +from __future__ import absolute_import, print_function, unicode_literals + import datetime import glob import itertools diff --git a/ietf/secr/telechat/views.py b/ietf/secr/telechat/views.py index c78208ff1..d78dde653 100644 --- a/ietf/secr/telechat/views.py +++ b/ietf/secr/telechat/views.py @@ -1,4 +1,9 @@ # Copyright The IETF Trust 2013-2019, All Rights Reserved +# -*- coding: utf-8 -*- + + +from __future__ import absolute_import, print_function, unicode_literals + import datetime from django.contrib import messages diff --git a/ietf/secr/utils/ams_utils.py b/ietf/secr/utils/ams_utils.py index 6a9ac3196..d8e3c2a62 100644 --- a/ietf/secr/utils/ams_utils.py +++ b/ietf/secr/utils/ams_utils.py @@ -1,4 +1,9 @@ # Copyright The IETF Trust 2013-2019, All Rights Reserved +# -*- coding: utf-8 -*- + + +from __future__ import absolute_import, print_function, unicode_literals + from django.conf import settings from ietf.person.models import Person diff --git a/ietf/stats/utils.py b/ietf/stats/utils.py index fd7b939e7..909a37b1e 100644 --- a/ietf/stats/utils.py +++ b/ietf/stats/utils.py @@ -1,4 +1,9 @@ # Copyright The IETF Trust 2017-2019, All Rights Reserved +# -*- coding: utf-8 -*- + + +from __future__ import absolute_import, print_function, unicode_literals + import re import requests from collections import defaultdict diff --git a/ietf/stats/views.py b/ietf/stats/views.py index ab1f956ad..bd9b4210d 100644 --- a/ietf/stats/views.py +++ b/ietf/stats/views.py @@ -1,6 +1,9 @@ # Copyright The IETF Trust 2016-2019, All Rights Reserved # -*- coding: utf-8 -*- + +from __future__ import absolute_import, print_function, unicode_literals + import os import calendar import datetime