Browse Source

Stop to use the __future__ module.

The __future__ module [1] was used in this context to ensure compatibility
between python 2 and python 3.

We previously dropped the support of python 2.7 and now we only support
python 3 so we don't need to continue to use this module and the imports
listed below.

Change-Id: I19fbdebe406575d2567f98a322ff68e6e992fac7
changes/40/737140/1
gugug 1 year ago
parent
commit
9d16152e39
  1. 1
      tripleoclient/heat_launcher.py
  2. 1
      tripleoclient/utils.py
  3. 2
      tripleoclient/v1/overcloud_cell.py
  4. 1
      tripleoclient/v1/overcloud_deploy.py
  5. 2
      tripleoclient/v1/overcloud_export.py
  6. 2
      tripleoclient/v1/overcloud_image.py
  7. 1
      tripleoclient/v1/overcloud_netenv_validate.py
  8. 2
      tripleoclient/v1/overcloud_plan.py
  9. 2
      tripleoclient/v1/overcloud_roles.py
  10. 1
      tripleoclient/v1/tripleo_config.py
  11. 1
      tripleoclient/v1/tripleo_deploy.py
  12. 1
      tripleoclient/v1/tripleo_launch_heat.py
  13. 2
      tripleoclient/workflows/baremetal.py
  14. 1
      tripleoclient/workflows/deployment.py
  15. 1
      tripleoclient/workflows/package_update.py
  16. 1
      tripleoclient/workflows/scale.py

1
tripleoclient/heat_launcher.py

@ -12,7 +12,6 @@
# License for the specific language governing permissions and limitations
# under the License.
#
from __future__ import print_function
import datetime
import grp

1
tripleoclient/utils.py

@ -13,7 +13,6 @@
# under the License.
#
from __future__ import print_function
import collections
try:

2
tripleoclient/v1/overcloud_cell.py

@ -10,8 +10,6 @@
# License for the specific language governing permissions and limitations
# under the License.
from __future__ import print_function
from datetime import datetime
import logging
import os.path

1
tripleoclient/v1/overcloud_deploy.py

@ -12,7 +12,6 @@
# License for the specific language governing permissions and limitations
# under the License.
#
from __future__ import print_function
import argparse
import logging

2
tripleoclient/v1/overcloud_export.py

@ -10,8 +10,6 @@
# License for the specific language governing permissions and limitations
# under the License.
from __future__ import print_function
from datetime import datetime
import logging
import os.path

2
tripleoclient/v1/overcloud_image.py

@ -13,8 +13,6 @@
# under the License.
#
from __future__ import print_function
import abc
import collections
from datetime import datetime

1
tripleoclient/v1/overcloud_netenv_validate.py

@ -12,7 +12,6 @@
# License for the specific language governing permissions and limitations
# under the License.
#
from __future__ import print_function
import itertools
import logging

2
tripleoclient/v1/overcloud_plan.py

@ -10,8 +10,6 @@
# License for the specific language governing permissions and limitations
# under the License.
from __future__ import print_function
import logging
import os.path

2
tripleoclient/v1/overcloud_roles.py

@ -13,8 +13,6 @@
# under the License.
#
from __future__ import print_function
import collections
import os
import sys

1
tripleoclient/v1/tripleo_config.py

@ -12,7 +12,6 @@
# License for the specific language governing permissions and limitations
# under the License.
#
from __future__ import print_function
import argparse
import logging

1
tripleoclient/v1/tripleo_deploy.py

@ -12,7 +12,6 @@
# License for the specific language governing permissions and limitations
# under the License.
#
from __future__ import print_function
import argparse
import json

1
tripleoclient/v1/tripleo_launch_heat.py

@ -12,7 +12,6 @@
# License for the specific language governing permissions and limitations
# under the License.
#
from __future__ import print_function
import argparse
import getpass

2
tripleoclient/workflows/baremetal.py

@ -12,8 +12,6 @@
# License for the specific language governing permissions and limitations
# under the License.
from __future__ import print_function
import six
from tripleo_common.actions import baremetal

1
tripleoclient/workflows/deployment.py

@ -9,7 +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 print_function
import copy
import getpass

1
tripleoclient/workflows/package_update.py

@ -9,7 +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 print_function
from heatclient.common import event_utils
from tripleo_common.utils import plan

1
tripleoclient/workflows/scale.py

@ -12,7 +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 print_function
from heatclient.common import event_utils
from tripleo_common.actions import scale

Loading…
Cancel
Save