Browse Source

Remove future imports

These particular imports are no longer needed in a Python 3-only world.

Change-Id: Ia1b60ce238713b86f126e2d404199d102fdbc5bc
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
changes/75/714675/5
Stephen Finucane 1 year ago
parent
commit
1515a229e3
  1. 2
      nova/cmd/common.py
  2. 2
      nova/cmd/manage.py
  3. 2
      nova/cmd/status.py
  4. 2
      nova/crypto.py
  5. 2
      nova/image/glance.py
  6. 2
      nova/tests/fixtures.py
  7. 2
      nova/tests/functional/api_paste_fixture.py
  8. 2
      nova/tests/functional/fixtures.py
  9. 2
      nova/tests/functional/test_compute_mgr.py
  10. 2
      nova/tests/functional/test_metadata.py
  11. 2
      nova/tests/functional/test_nova_manage.py
  12. 2
      nova/tests/functional/test_servers.py
  13. 2
      nova/tests/unit/virt/powervm/disk/test_ssp.py
  14. 1
      nova/tests/unit/virt/powervm/test_driver.py
  15. 2
      nova/tests/unit/virt/powervm/test_media.py
  16. 2
      nova/tests/unit/virt/powervm/test_vm.py
  17. 2
      nova/wsgi.py
  18. 2
      tools/db/schema_diff.py

2
nova/cmd/common.py

@ -17,8 +17,6 @@
Common functions used by different CLI interfaces.
"""
from __future__ import print_function
import argparse
import traceback

2
nova/cmd/manage.py

@ -21,8 +21,6 @@
CLI interface for nova management.
"""
from __future__ import print_function
import collections
import functools
import re

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

1
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

2
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

2
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

2
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

2
tools/db/schema_diff.py

@ -42,8 +42,6 @@ Run like:
"""
from __future__ import print_function
import datetime
import glob
import os

Loading…
Cancel
Save