From a67b805d71d45d74adf0b8a607b8a7218d185b0b Mon Sep 17 00:00:00 2001 From: Bryan Gurney Date: Mon, 21 Aug 2023 09:03:42 -0400 Subject: [PATCH] Apply formatting changes from black 23.7.0 Signed-off-by: Bryan Gurney --- src/stratis_cli/_actions/_list_pool.py | 2 +- src/stratis_cli/_actions/_top.py | 4 ---- src/stratis_cli/_error_reporting.py | 1 - src/stratis_cli/_parser/_parser.py | 2 +- 4 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/stratis_cli/_actions/_list_pool.py b/src/stratis_cli/_actions/_list_pool.py index 6e2a912e5..2417b5ac6 100644 --- a/src/stratis_cli/_actions/_list_pool.py +++ b/src/stratis_cli/_actions/_list_pool.py @@ -194,7 +194,7 @@ def _pools_with_changed_devs(devs_to_search): from ._data import MODev (increased, decreased) = (set(), set()) - for (_, info) in devs_to_search: + for _, info in devs_to_search: modev = MODev(info) size = Range(modev.TotalPhysicalSize()) observed_size = get_property(modev.NewPhysicalSize(), Range, size) diff --git a/src/stratis_cli/_actions/_top.py b/src/stratis_cli/_actions/_top.py index 5d41962dd..b423e17af 100644 --- a/src/stratis_cli/_actions/_top.py +++ b/src/stratis_cli/_actions/_top.py @@ -119,7 +119,6 @@ def get_report(namespace): # pylint: disable=import-outside-toplevel if namespace.report_name == str(ReportKey.MANAGED_OBJECTS): - from ._data import ObjectManager json_report = ObjectManager.Methods.GetManagedObjects( @@ -127,9 +126,7 @@ def get_report(namespace): ) else: - if namespace.report_name == str(ReportKey.ENGINE_STATE): - from ._data import Manager (report, return_code, message) = Manager.Methods.EngineStateReport( @@ -137,7 +134,6 @@ def get_report(namespace): ) else: - from ._data import Report (report, return_code, message) = Report.Methods.GetReport( diff --git a/src/stratis_cli/_error_reporting.py b/src/stratis_cli/_error_reporting.py index c15d8a90b..5724a2870 100644 --- a/src/stratis_cli/_error_reporting.py +++ b/src/stratis_cli/_error_reporting.py @@ -268,7 +268,6 @@ def _interpret_errors_2(errors): if len(errors) > 1: next_error = errors[1] if isinstance(next_error, dbus.exceptions.DBusException): - # We do not test this error, as the only known way to cause it is # manipulation of selinux configuration, which is too laborious to # bother with at this time. diff --git a/src/stratis_cli/_parser/_parser.py b/src/stratis_cli/_parser/_parser.py index 62ffd6677..60b251f28 100644 --- a/src/stratis_cli/_parser/_parser.py +++ b/src/stratis_cli/_parser/_parser.py @@ -62,7 +62,7 @@ def _add_mut_ex_args(parser, args): arguments to be added :type args: list of bool * (list of dict) """ - for (one_is_required, arg_list) in args: + for one_is_required, arg_list in args: group = parser.add_mutually_exclusive_group(required=one_is_required) for name, arg in arg_list: group.add_argument(name, **arg)