Skip to content

Commit 726fcbf

Browse files
committed
Removed all __future__ imports.
- Legacy-Id: 17391
1 parent ab173cb commit 726fcbf

463 files changed

Lines changed: 418 additions & 1277 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.

PLAN

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,6 @@ Updated: $Date$
77
Planned work in rough order
88
===========================
99

10-
* Refactor the use of urlopen(). This is triggered by the transition to
11-
python 3: All instances of .read() from urlopen() objects return byte
12-
streams under Python 3, while the code wants to deal with str objects, which
13-
are unicode under Python 3. Instead of building our own adapter to extract
14-
the charset and do the decoding, we should transition to the 'requests'
15-
module, which provides decoded unicode text directly from the response.
16-
1710
* Transition to Django 2.x (depends on Python 3.x). Security updates to
1811
Django 1.11 will cease around April 2020.
1912

bin/check-copyright

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ COPYRIGHT
3333
Open Source Initiative at http://opensource.org/licenses/BSD-2-Clause.
3434
3535
"""
36-
from __future__ import print_function
36+
3737

3838
import datetime
3939
import os

bin/setupenv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env python
2-
from __future__ import print_function
2+
33

44
import os
55
import subprocess

ietf/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
# -*- coding: utf-8 -*-
33

44

5-
from __future__ import absolute_import, print_function, unicode_literals
6-
75
from . import checks # pyflakes:ignore
86

97
# Don't add patch number here:

ietf/api/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
# -*- coding: utf-8 -*-
33

44

5-
from __future__ import absolute_import, print_function, unicode_literals
6-
75
import datetime
86
import re
97

ietf/api/management/commands/makeresources.py

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

55
import os
66
import datetime

ietf/api/serializer.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
# -*- coding: utf-8 -*-
33

44

5-
from __future__ import absolute_import, print_function, unicode_literals
6-
75
import hashlib
86
import json
97

ietf/api/tests.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
# Copyright The IETF Trust 2015-2019, All Rights Reserved
1+
# Copyright The IETF Trust 2015-2020, All Rights Reserved
22
# -*- coding: utf-8 -*-
33

44

5-
from __future__ import absolute_import, print_function, unicode_literals
6-
75
import os
86
import sys
97

ietf/api/views.py

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

55
from jwcrypto.jwk import JWK
66

ietf/bin/list-role-holder-emails

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env python
2-
from __future__ import print_function
2+
33

44
import os, sys
55
import syslog

0 commit comments

Comments
 (0)