From 33a2ea9e973e4f425a46f3172385ff53078efc66 Mon Sep 17 00:00:00 2001 From: Goutham Pacha Ravi Date: Tue, 5 May 2020 08:44:02 -0700 Subject: [PATCH] TrivialFix: Remove unnecessary future imports print_function has been available since python 3.0.0 We can drop its import from __future__ Change-Id: I5f8c45c85ba66d29dc89ee6c0589044e413a549c Signed-off-by: Goutham Pacha Ravi --- manilaclient/common/cliutils.py | 2 -- manilaclient/shell.py | 2 -- manilaclient/tests/unit/fakes.py | 2 -- manilaclient/tests/unit/v2/fakes.py | 2 -- manilaclient/v2/shell.py | 2 -- tools/install_venv.py | 2 -- 6 files changed, 12 deletions(-) diff --git a/manilaclient/common/cliutils.py b/manilaclient/common/cliutils.py index 36f3f9573..7940710a2 100644 --- a/manilaclient/common/cliutils.py +++ b/manilaclient/common/cliutils.py @@ -16,8 +16,6 @@ # W0621: Redefining name %s from outer scope # pylint: disable=W0603,W0621 -from __future__ import print_function - import getpass import inspect import os diff --git a/manilaclient/shell.py b/manilaclient/shell.py index d74453cc7..fb200ce7a 100644 --- a/manilaclient/shell.py +++ b/manilaclient/shell.py @@ -18,8 +18,6 @@ Command-line interface to the OpenStack Manila API. """ -from __future__ import print_function - import argparse import glob import imp diff --git a/manilaclient/tests/unit/fakes.py b/manilaclient/tests/unit/fakes.py index a660e2674..165a16d10 100644 --- a/manilaclient/tests/unit/fakes.py +++ b/manilaclient/tests/unit/fakes.py @@ -18,8 +18,6 @@ wrong the tests might raise AssertionError. I've indicated in comments the places where actual behavior differs from the spec. """ -from __future__ import print_function - def assert_has_keys(dictonary, required=None, optional=None): if required is None: diff --git a/manilaclient/tests/unit/v2/fakes.py b/manilaclient/tests/unit/v2/fakes.py index 34315ec16..8ef634b8a 100644 --- a/manilaclient/tests/unit/v2/fakes.py +++ b/manilaclient/tests/unit/v2/fakes.py @@ -13,8 +13,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -from __future__ import print_function - import manilaclient from manilaclient import api_versions from manilaclient.tests.unit.v2 import fake_clients as fakes diff --git a/manilaclient/v2/shell.py b/manilaclient/v2/shell.py index d41fb6532..0c515f96f 100644 --- a/manilaclient/v2/shell.py +++ b/manilaclient/v2/shell.py @@ -13,8 +13,6 @@ # License for the specific language governing permissions and limitations # under the License. -from __future__ import print_function - from operator import xor import os diff --git a/tools/install_venv.py b/tools/install_venv.py index 4ce06b8bb..1fe6adf6c 100644 --- a/tools/install_venv.py +++ b/tools/install_venv.py @@ -20,8 +20,6 @@ Installation script for Nova's development virtualenv """ -from __future__ import print_function - import optparse import os import subprocess