Skip to content

Commit 4261ae5

Browse files
authored
cloudinit: remove unneeded __future__ imports (#362)
We live in the future now.
1 parent b73b319 commit 4261ae5

File tree

8 files changed

+0
-16
lines changed

8 files changed

+0
-16
lines changed

cloudinit/config/schema.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# This file is part of cloud-init. See LICENSE file for license information.
22
"""schema.py: Set of module functions for processing cloud-config schema."""
33

4-
from __future__ import print_function
5-
64
from cloudinit import importer
75
from cloudinit.util import find_modules, load_file
86

cloudinit/serial.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# This file is part of cloud-init. See LICENSE file for license information.
22

3-
from __future__ import absolute_import
4-
53
try:
64
from serial import Serial
75
except ImportError:

cloudinit/sources/DataSourceMAAS.py

-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
#
77
# This file is part of cloud-init. See LICENSE file for license information.
88

9-
from __future__ import print_function
10-
119
import hashlib
1210
import os
1311
import time

cloudinit/tests/helpers.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# This file is part of cloud-init. See LICENSE file for license information.
22

3-
from __future__ import print_function
4-
53
import functools
64
import httpretty
75
import io

tests/unittests/test_cs_util.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# This file is part of cloud-init. See LICENSE file for license information.
22

3-
from __future__ import print_function
4-
53
from cloudinit.tests import helpers as test_helpers
64

75
from cloudinit.cs_utils import Cepko

tests/unittests/test_datasource/test_smartos.py

-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
1313
'''
1414

15-
from __future__ import print_function
16-
1715
from binascii import crc32
1816
import json
1917
import multiprocessing

tests/unittests/test_templating.py

-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
#
55
# This file is part of cloud-init. See LICENSE file for license information.
66

7-
from __future__ import print_function
8-
97
from cloudinit.tests import helpers as test_helpers
108
import textwrap
119

tests/unittests/test_util.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# This file is part of cloud-init. See LICENSE file for license information.
22

3-
from __future__ import print_function
4-
53
import io
64
import json
75
import logging

0 commit comments

Comments
 (0)