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
This commit is contained in:
gugug 2020-06-20 23:59:23 +08:00
parent adf29a1e70
commit 9d16152e39
16 changed files with 0 additions and 22 deletions

View File

@ -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

View File

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

View File

@ -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

View File

@ -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

View File

@ -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

View File

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

View File

@ -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

View File

@ -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

View File

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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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