diff --git a/doc/source/conf.py b/doc/source/conf.py index eca1a23169..623caae519 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -22,8 +22,6 @@ # All configuration values have a default; values that are commented out # serve to show the default. -from __future__ import print_function - import logging import os import sys diff --git a/horizon/templatetags/bootstrap.py b/horizon/templatetags/bootstrap.py index e4a0148ac8..defc675bf7 100644 --- a/horizon/templatetags/bootstrap.py +++ b/horizon/templatetags/bootstrap.py @@ -13,8 +13,6 @@ # License for the specific language governing permissions and limitations # under the License. -from __future__ import absolute_import - from django import template diff --git a/horizon/templatetags/horizon.py b/horizon/templatetags/horizon.py index 6b5499e1ee..34f7a327fa 100644 --- a/horizon/templatetags/horizon.py +++ b/horizon/templatetags/horizon.py @@ -12,8 +12,6 @@ # License for the specific language governing permissions and limitations # under the License. -from __future__ import absolute_import - from collections import OrderedDict from django.conf import settings diff --git a/horizon/utils/csvbase.py b/horizon/utils/csvbase.py index 4cc095321f..b5c5627e12 100644 --- a/horizon/utils/csvbase.py +++ b/horizon/utils/csvbase.py @@ -10,8 +10,6 @@ # License for the specific language governing permissions and limitations # under the License. -from __future__ import division - import csv import io diff --git a/openstack_dashboard/api/cinder.py b/openstack_dashboard/api/cinder.py index 2032114441..a5e40a2328 100644 --- a/openstack_dashboard/api/cinder.py +++ b/openstack_dashboard/api/cinder.py @@ -18,8 +18,6 @@ # License for the specific language governing permissions and limitations # under the License. -from __future__ import absolute_import - import logging import math diff --git a/openstack_dashboard/api/glance.py b/openstack_dashboard/api/glance.py index f5b53e716a..db836cf81a 100644 --- a/openstack_dashboard/api/glance.py +++ b/openstack_dashboard/api/glance.py @@ -16,9 +16,6 @@ # License for the specific language governing permissions and limitations # under the License. -from __future__ import absolute_import -from __future__ import division - import _thread as thread import collections from collections import abc diff --git a/openstack_dashboard/api/neutron.py b/openstack_dashboard/api/neutron.py index a5a4a27e7a..7bd3e29fb8 100644 --- a/openstack_dashboard/api/neutron.py +++ b/openstack_dashboard/api/neutron.py @@ -17,8 +17,6 @@ # License for the specific language governing permissions and limitations # under the License. -from __future__ import absolute_import - import collections from collections.abc import Sequence import copy diff --git a/openstack_dashboard/api/nova.py b/openstack_dashboard/api/nova.py index 9a9370b41f..31c48b3b59 100644 --- a/openstack_dashboard/api/nova.py +++ b/openstack_dashboard/api/nova.py @@ -18,8 +18,6 @@ # License for the specific language governing permissions and limitations # under the License. -from __future__ import absolute_import - import collections import logging from operator import attrgetter diff --git a/openstack_dashboard/management/commands/make_web_conf.py b/openstack_dashboard/management/commands/make_web_conf.py index d644fb65d9..35000724ab 100644 --- a/openstack_dashboard/management/commands/make_web_conf.py +++ b/openstack_dashboard/management/commands/make_web_conf.py @@ -10,8 +10,6 @@ # License for the specific language governing permissions and limitations # under the License. -from __future__ import print_function - import multiprocessing import os import re diff --git a/openstack_dashboard/management/commands/migrate_settings.py b/openstack_dashboard/management/commands/migrate_settings.py index 3a4fd4cdbb..fb77a9042b 100644 --- a/openstack_dashboard/management/commands/migrate_settings.py +++ b/openstack_dashboard/management/commands/migrate_settings.py @@ -10,8 +10,6 @@ # License for the specific language governing permissions and limitations # under the License. -from __future__ import print_function - import difflib import imp import os diff --git a/openstack_dashboard/management/commands/upgrade_check.py b/openstack_dashboard/management/commands/upgrade_check.py index 2ab5731eb6..d1af7b70c3 100644 --- a/openstack_dashboard/management/commands/upgrade_check.py +++ b/openstack_dashboard/management/commands/upgrade_check.py @@ -10,9 +10,6 @@ # License for the specific language governing permissions and limitations # under the License. - -from __future__ import print_function - import json import sys diff --git a/openstack_dashboard/templatetags/context_selection.py b/openstack_dashboard/templatetags/context_selection.py index da63c29cd0..265a409769 100644 --- a/openstack_dashboard/templatetags/context_selection.py +++ b/openstack_dashboard/templatetags/context_selection.py @@ -12,8 +12,6 @@ # License for the specific language governing permissions and limitations # under the License. -from __future__ import absolute_import - from django.conf import settings from django import template diff --git a/openstack_dashboard/templatetags/themes.py b/openstack_dashboard/templatetags/themes.py index 30ab7fba7e..6e948544c5 100644 --- a/openstack_dashboard/templatetags/themes.py +++ b/openstack_dashboard/templatetags/themes.py @@ -13,8 +13,6 @@ # License for the specific language governing permissions and limitations # under the License. -from __future__ import absolute_import - import os from urllib.request import pathname2url diff --git a/openstack_dashboard/test/unit/api/test_base.py b/openstack_dashboard/test/unit/api/test_base.py index 3a3fc67636..b3ba74d581 100644 --- a/openstack_dashboard/test/unit/api/test_base.py +++ b/openstack_dashboard/test/unit/api/test_base.py @@ -16,8 +16,6 @@ # License for the specific language governing permissions and limitations # under the License. -from __future__ import absolute_import - from django.conf import settings from horizon import exceptions diff --git a/openstack_dashboard/test/unit/api/test_keystone.py b/openstack_dashboard/test/unit/api/test_keystone.py index f4e325f4ee..260aab5dc1 100644 --- a/openstack_dashboard/test/unit/api/test_keystone.py +++ b/openstack_dashboard/test/unit/api/test_keystone.py @@ -15,8 +15,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 from unittest import mock diff --git a/openstack_dashboard/test/unit/api/test_nova.py b/openstack_dashboard/test/unit/api/test_nova.py index 478a6bbabf..f20f2f6ffd 100644 --- a/openstack_dashboard/test/unit/api/test_nova.py +++ b/openstack_dashboard/test/unit/api/test_nova.py @@ -16,8 +16,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 from unittest import mock from django.conf import settings diff --git a/openstack_dashboard/test/unit/api/test_swift.py b/openstack_dashboard/test/unit/api/test_swift.py index a91e0249a5..5645db3fad 100644 --- a/openstack_dashboard/test/unit/api/test_swift.py +++ b/openstack_dashboard/test/unit/api/test_swift.py @@ -15,8 +15,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 from unittest import mock from horizon import exceptions diff --git a/openstack_dashboard/test/unit/usage/test_quotas.py b/openstack_dashboard/test/unit/usage/test_quotas.py index 9d247a3414..382bf0841f 100644 --- a/openstack_dashboard/test/unit/usage/test_quotas.py +++ b/openstack_dashboard/test/unit/usage/test_quotas.py @@ -17,8 +17,6 @@ # License for the specific language governing permissions and limitations # under the License. -from __future__ import absolute_import - import collections from unittest import mock diff --git a/openstack_dashboard/usage/base.py b/openstack_dashboard/usage/base.py index 6674b6e9c3..02b8a1c198 100644 --- a/openstack_dashboard/usage/base.py +++ b/openstack_dashboard/usage/base.py @@ -10,8 +10,6 @@ # License for the specific language governing permissions and limitations # under the License. -from __future__ import division - import datetime from django.conf import settings diff --git a/tools/policy-diff.py b/tools/policy-diff.py index 5ace2b61f6..3db39114f7 100644 --- a/tools/policy-diff.py +++ b/tools/policy-diff.py @@ -12,8 +12,6 @@ """Tool to check policy file differeneces.""" -from __future__ import print_function - import argparse import yaml