Skip to content

Commit 2d7c962

Browse files
committed
Added 'from __future__' imports all over the place, to bring code behaviour into closer alignment between python2 and python3
- Legacy-Id: 16446
1 parent 6ace81b commit 2d7c962

261 files changed

Lines changed: 735 additions & 11 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

ietf/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Copyright The IETF Trust 2007-2019, All Rights Reserved
22
# -*- coding: utf-8 -*-
33

4+
5+
from __future__ import absolute_import, print_function, unicode_literals
6+
47
from . import checks # pyflakes:ignore
58

69
# Don't add patch number here:

ietf/api/tests.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# Copyright The IETF Trust 2015-2019, All Rights Reserved
2+
# -*- coding: utf-8 -*-
3+
4+
5+
from __future__ import absolute_import, print_function, unicode_literals
26

37
import os
48
import sys

ietf/community/admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Copyright The IETF Trust 2017-2019, All Rights Reserved
22
# -*- coding: utf-8 -*-
3-
3+
from __future__ import absolute_import, print_function, unicode_literals
44

55
from django.contrib import admin
66

ietf/community/forms.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# Copyright The IETF Trust 2012-2019, All Rights Reserved
2+
# -*- coding: utf-8 -*-
3+
4+
5+
from __future__ import absolute_import, print_function, unicode_literals
6+
27
from django import forms
38
from django.db.models import Q
49

ietf/community/migrations/0001_initial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright The IETF Trust 2018-2019, All Rights Reserved
22
# -*- coding: utf-8 -*-
33
# Generated by Django 1.11.10 on 2018-02-20 10:52
4-
4+
from __future__ import absolute_import, print_function, unicode_literals
55

66
from django.db import migrations, models
77
import django.db.models.deletion

ietf/community/migrations/0002_auto_20180220_1052.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# Generated by Django 1.11.10 on 2018-02-20 10:52
44

55

6+
from __future__ import absolute_import, print_function, unicode_literals
7+
68
from django.conf import settings
79
from django.db import migrations, models
810
import django.db.models.deletion

ietf/community/migrations/0003_add_communitylist_docs2_m2m.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# Generated by Django 1.11.20 on 2019-05-21 14:23
44

55

6+
from __future__ import absolute_import, print_function, unicode_literals
7+
68
from django.db import migrations, models
79
import django.db.models.deletion
810
import ietf.utils.models

ietf/community/migrations/0004_set_document_m2m_keys.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# Generated by Django 1.11.20 on 2019-05-21 14:27
44

55

6+
from __future__ import absolute_import, print_function, unicode_literals
7+
68
import sys
79

810
from tqdm import tqdm

ietf/community/migrations/0005_1_del_docs_m2m_table.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# Generated by Django 1.11.20 on 2019-05-22 08:15
44

55

6+
from __future__ import absolute_import, print_function, unicode_literals
7+
68
from django.db import migrations
79

810

ietf/community/migrations/0005_2_add_docs_m2m_table.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# Generated by Django 1.11.20 on 2019-05-22 08:15
44

55

6+
from __future__ import absolute_import, print_function, unicode_literals
7+
68
from django.db import migrations, models
79

810

0 commit comments

Comments
 (0)