Browse Source

Merge "Stop to use the __future__ module."

changes/66/731666/4
Zuul 2 years ago
committed by Gerrit Code Review
parent
commit
fb467ad60d
  1. 2
      doc/source/conf.py
  2. 2
      horizon/templatetags/bootstrap.py
  3. 2
      horizon/templatetags/horizon.py
  4. 2
      horizon/utils/csvbase.py
  5. 2
      openstack_dashboard/api/cinder.py
  6. 3
      openstack_dashboard/api/glance.py
  7. 2
      openstack_dashboard/api/neutron.py
  8. 2
      openstack_dashboard/api/nova.py
  9. 2
      openstack_dashboard/management/commands/make_web_conf.py
  10. 2
      openstack_dashboard/management/commands/migrate_settings.py
  11. 3
      openstack_dashboard/management/commands/upgrade_check.py
  12. 2
      openstack_dashboard/templatetags/context_selection.py
  13. 2
      openstack_dashboard/templatetags/themes.py
  14. 2
      openstack_dashboard/test/unit/api/test_base.py
  15. 2
      openstack_dashboard/test/unit/api/test_keystone.py
  16. 2
      openstack_dashboard/test/unit/api/test_nova.py
  17. 2
      openstack_dashboard/test/unit/api/test_swift.py
  18. 2
      openstack_dashboard/test/unit/usage/test_quotas.py
  19. 2
      openstack_dashboard/usage/base.py
  20. 2
      tools/policy-diff.py

2
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

2
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

2
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

2
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

2
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

3
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

2
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

2
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

2
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

2
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

3
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
tools/policy-diff.py

@ -12,8 +12,6 @@
"""Tool to check policy file differeneces."""
from __future__ import print_function
import argparse
import yaml

Loading…
Cancel
Save