diff --git a/nova/cmd/common.py b/nova/cmd/common.py index ab7b7c3ca205..c4302e5a9674 100644 --- a/nova/cmd/common.py +++ b/nova/cmd/common.py @@ -17,8 +17,6 @@ Common functions used by different CLI interfaces. """ -from __future__ import print_function - import argparse import traceback diff --git a/nova/cmd/manage.py b/nova/cmd/manage.py index 2e4e135ee0dd..e90246edd1ed 100644 --- a/nova/cmd/manage.py +++ b/nova/cmd/manage.py @@ -21,8 +21,6 @@ CLI interface for nova management. """ -from __future__ import print_function - import collections import functools import re diff --git a/nova/cmd/status.py b/nova/cmd/status.py index f9e1319c1abb..3c9c15fb3ff5 100644 --- a/nova/cmd/status.py +++ b/nova/cmd/status.py @@ -16,8 +16,6 @@ CLI interface for nova status commands. """ -from __future__ import print_function - import collections import functools import sys diff --git a/nova/crypto.py b/nova/crypto.py index 5b96a0ef4b9a..f195bce4fa52 100644 --- a/nova/crypto.py +++ b/nova/crypto.py @@ -19,8 +19,6 @@ Includes root and intermediate CAs, SSH key_pairs and x509 certificates. """ -from __future__ import absolute_import - import base64 import binascii import os diff --git a/nova/image/glance.py b/nova/image/glance.py index 5ed0d59d3005..91a3c77b01c7 100644 --- a/nova/image/glance.py +++ b/nova/image/glance.py @@ -15,8 +15,6 @@ """Implementation of an image service that uses Glance as the backend.""" -from __future__ import absolute_import - import copy import inspect import itertools diff --git a/nova/tests/fixtures.py b/nova/tests/fixtures.py index ce66ddb77411..609fbd95f363 100644 --- a/nova/tests/fixtures.py +++ b/nova/tests/fixtures.py @@ -15,8 +15,6 @@ # under the License. """Fixtures for Nova tests.""" -from __future__ import absolute_import - import collections from contextlib import contextmanager import copy diff --git a/nova/tests/functional/api_paste_fixture.py b/nova/tests/functional/api_paste_fixture.py index 5c268c73070a..598b00f75175 100644 --- a/nova/tests/functional/api_paste_fixture.py +++ b/nova/tests/functional/api_paste_fixture.py @@ -11,8 +11,6 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. -from __future__ import absolute_import - import os import fixtures diff --git a/nova/tests/functional/fixtures.py b/nova/tests/functional/fixtures.py index 0a56bab4be7c..9a05aa9bb095 100644 --- a/nova/tests/functional/fixtures.py +++ b/nova/tests/functional/fixtures.py @@ -11,8 +11,6 @@ # License for the specific language governing permissions and limitations # under the License. """Fixtures solely for functional tests.""" -from __future__ import absolute_import - import fixtures from keystoneauth1 import adapter as ka from keystoneauth1 import session as ks diff --git a/nova/tests/functional/test_compute_mgr.py b/nova/tests/functional/test_compute_mgr.py index 151980ab888f..d6ca94b5c42c 100644 --- a/nova/tests/functional/test_compute_mgr.py +++ b/nova/tests/functional/test_compute_mgr.py @@ -10,8 +10,6 @@ # License for the specific language governing permissions and limitations # under the License. -from __future__ import absolute_import - import fixtures import mock diff --git a/nova/tests/functional/test_metadata.py b/nova/tests/functional/test_metadata.py index f29e04021375..bc5b680a2cd2 100644 --- a/nova/tests/functional/test_metadata.py +++ b/nova/tests/functional/test_metadata.py @@ -12,8 +12,6 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. -from __future__ import absolute_import - import fixtures import jsonschema import os diff --git a/nova/tests/functional/test_nova_manage.py b/nova/tests/functional/test_nova_manage.py index 811224e96ec2..542b4f478473 100644 --- a/nova/tests/functional/test_nova_manage.py +++ b/nova/tests/functional/test_nova_manage.py @@ -9,8 +9,6 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. -from __future__ import absolute_import - import collections import mock diff --git a/nova/tests/functional/test_servers.py b/nova/tests/functional/test_servers.py index ba83dc4f15b6..43364ad962b2 100644 --- a/nova/tests/functional/test_servers.py +++ b/nova/tests/functional/test_servers.py @@ -12,8 +12,6 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. -from __future__ import absolute_import - import collections import copy import datetime diff --git a/nova/tests/unit/virt/powervm/disk/test_ssp.py b/nova/tests/unit/virt/powervm/disk/test_ssp.py index 6e83640b1c0a..86705dc29b88 100644 --- a/nova/tests/unit/virt/powervm/disk/test_ssp.py +++ b/nova/tests/unit/virt/powervm/disk/test_ssp.py @@ -12,8 +12,6 @@ # License for the specific language governing permissions and limitations # under the License. -from __future__ import absolute_import - import fixtures import mock from oslo_utils import uuidutils diff --git a/nova/tests/unit/virt/powervm/test_driver.py b/nova/tests/unit/virt/powervm/test_driver.py index 53cf89cbed07..25e99cd4b68e 100644 --- a/nova/tests/unit/virt/powervm/test_driver.py +++ b/nova/tests/unit/virt/powervm/test_driver.py @@ -12,7 +12,6 @@ # License for the specific language governing permissions and limitations # under the License. -from __future__ import absolute_import import contextlib import fixtures diff --git a/nova/tests/unit/virt/powervm/test_media.py b/nova/tests/unit/virt/powervm/test_media.py index fe1d7efeec26..f98769e0dee1 100644 --- a/nova/tests/unit/virt/powervm/test_media.py +++ b/nova/tests/unit/virt/powervm/test_media.py @@ -14,8 +14,6 @@ # License for the specific language governing permissions and limitations # under the License. -from __future__ import absolute_import - import fixtures import mock from oslo_utils.fixture import uuidsentinel diff --git a/nova/tests/unit/virt/powervm/test_vm.py b/nova/tests/unit/virt/powervm/test_vm.py index d9d6e88bce1b..ab0f9c35e830 100644 --- a/nova/tests/unit/virt/powervm/test_vm.py +++ b/nova/tests/unit/virt/powervm/test_vm.py @@ -12,8 +12,6 @@ # License for the specific language governing permissions and limitations # under the License. -from __future__ import absolute_import - import fixtures import mock from pypowervm import exceptions as pvm_exc diff --git a/nova/wsgi.py b/nova/wsgi.py index 07021f16c3fd..e9fb7500320b 100644 --- a/nova/wsgi.py +++ b/nova/wsgi.py @@ -17,8 +17,6 @@ """Utility methods for working with WSGI servers.""" -from __future__ import print_function - import os.path import socket import ssl diff --git a/tools/db/schema_diff.py b/tools/db/schema_diff.py index bb389532f053..b309d26725cf 100755 --- a/tools/db/schema_diff.py +++ b/tools/db/schema_diff.py @@ -42,8 +42,6 @@ Run like: """ -from __future__ import print_function - import datetime import glob import os