From 739bec9dadce20f6ac329c85c27b7b9560eb2b5e Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Wed, 20 Mar 2024 19:03:12 +0100 Subject: [PATCH] Format code with black==24.3.0 --- src/rhsmlib/services/register.py | 6 +++--- src/subscription_manager/branding/__init__.py | 1 - src/subscription_manager/repofile.py | 1 - 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/rhsmlib/services/register.py b/src/rhsmlib/services/register.py index aa3d451844..76e1669088 100644 --- a/src/rhsmlib/services/register.py +++ b/src/rhsmlib/services/register.py @@ -144,9 +144,9 @@ def register( syspurposelib.write_syspurpose(syspurpose) syspurpose_dict = { - "service_level_agreement": consumer["serviceLevel"] - if "serviceLevel" in list(consumer.keys()) - else "", + "service_level_agreement": ( + consumer["serviceLevel"] if "serviceLevel" in list(consumer.keys()) else "" + ), "role": consumer["role"] if "role" in list(consumer.keys()) else "", "usage": consumer["usage"] if "usage" in list(consumer.keys()) else "", "addons": consumer["addOns"] if "addOns" in list(consumer.keys()) else [], diff --git a/src/subscription_manager/branding/__init__.py b/src/subscription_manager/branding/__init__.py index f435976ced..bd6db49591 100644 --- a/src/subscription_manager/branding/__init__.py +++ b/src/subscription_manager/branding/__init__.py @@ -67,7 +67,6 @@ def __getattr__(self, x): class DefaultBranding: - """ Default branding. values are defined in init to help with i18n/l10n ordering. diff --git a/src/subscription_manager/repofile.py b/src/subscription_manager/repofile.py index cc98803493..1d81524578 100644 --- a/src/subscription_manager/repofile.py +++ b/src/subscription_manager/repofile.py @@ -286,7 +286,6 @@ def manage_repos_enabled() -> bool: class TidyWriter: - """ ini file reader that removes successive newlines, and adds a trailing newline to the end of a file.