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 [2] and now we only support
python 3 so we don't need to continue to use this module and the imports
listed below.

Imports commonly used and their related PEPs:
- `division` is related to PEP 238 [3]
- `print_function` is related to PEP 3105 [4]
- `unicode_literals` is related to PEP 3112 [5]
- `with_statement` is related to PEP 343 [6]
- `absolute_import` is related to PEP 328 [7]

[1] https://docs.python.org/3/library/__future__.html
[2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
[3] https://www.python.org/dev/peps/pep-0238
[4] https://www.python.org/dev/peps/pep-3105
[5] https://www.python.org/dev/peps/pep-3112
[6] https://www.python.org/dev/peps/pep-0343
[7] https://www.python.org/dev/peps/pep-0328

Change-Id: Iaf6e2c9b16d053a8c279a48a25979c941b1c00da
This commit is contained in:
Hervé Beraud 2020-06-02 20:23:59 +02:00
parent 8c4ff32c15
commit 524d1f1c7d
15 changed files with 0 additions and 30 deletions

View File

@ -23,8 +23,6 @@ a MoltenIron server.
# pylint: disable-msg=C0103
# pylint: disable=redefined-outer-name
from __future__ import print_function
import argparse
import json
from molteniron import molteniron

View File

@ -22,8 +22,6 @@ This is the MoltenIron client class that speaks to a MoltenIron server.
# pylint: disable-msg=C0103
# pylint: disable=redefined-outer-name
from __future__ import print_function
import argparse
import json
import sys

View File

@ -22,8 +22,6 @@ This is a helper program for the MoltenIron server.
# pylint: disable-msg=C0103
# pylint: disable=redefined-outer-name
from __future__ import print_function
import argparse
from daemonize import Daemonize
from molteniron import moltenirond

View File

@ -27,8 +27,6 @@ This is the MoltenIron server.
# pylint: disable-msg=C0103
# pylint: disable=redefined-outer-name
from __future__ import print_function
import argparse
import calendar
from datetime import datetime

View File

@ -21,8 +21,6 @@ Tests the addBMNode MoltenIron command.
# pylint: disable-msg=C0103
from __future__ import print_function
import argparse
from molteniron import moltenirond
import os

View File

@ -21,8 +21,6 @@ Tests the MoltenIron allocateBM command.
# pylint: disable-msg=C0103
from __future__ import print_function
import argparse
import json
from molteniron import moltenirond

View File

@ -21,8 +21,6 @@ Tests the MoltenIron cull command.
# pylint: disable-msg=C0103
from __future__ import print_function
import argparse
import json
from molteniron import moltenirond

View File

@ -21,8 +21,6 @@ Tests the MoltenIron deallocateBM command.
# pylint: disable-msg=C0103
from __future__ import print_function
import argparse
import json
from molteniron import moltenirond

View File

@ -21,8 +21,6 @@ Tests the MoltenIron deallocateOwner command.
# pylint: disable-msg=C0103
from __future__ import print_function
import argparse
import json
from molteniron import moltenirond

View File

@ -21,8 +21,6 @@ Tests the MoltenIron doClean command.
# pylint: disable-msg=C0103
from __future__ import print_function
import argparse
from molteniron import moltenirond
import os

View File

@ -21,8 +21,6 @@ Tests the MoltenIron get_field command.
# pylint: disable-msg=C0103
from __future__ import print_function
import argparse
from molteniron import moltenirond
import os

View File

@ -21,8 +21,6 @@ Tests the MoltenIron get_ips command.
# pylint: disable-msg=C0103
from __future__ import print_function
import argparse
from molteniron import moltenirond
import os

View File

@ -21,8 +21,6 @@ Tests the MoltenIron removeBMNode command.
# pylint: disable-msg=C0103
from __future__ import print_function
import argparse
from molteniron import moltenirond
import os

View File

@ -21,8 +21,6 @@ Create the MoltenIron user in mysql and grant it access.
# pylint: disable-msg=C0103
from __future__ import print_function
import os
import sys
import yaml

View File

@ -23,8 +23,6 @@ a MoltenIron server.
# pylint: disable-msg=C0103
# pylint: disable=redefined-outer-name
from __future__ import print_function
import argparse
import json
from molteniron import molteniron