From b8b683bd660d36866f31329ac33b46225df07a51 Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Tue, 21 May 2024 00:22:36 +0200 Subject: [PATCH] undo an autoformater edit --- src/utils/resources.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/utils/resources.py b/src/utils/resources.py index 52d8edbbfd..2abb4d603b 100644 --- a/src/utils/resources.py +++ b/src/utils/resources.py @@ -1153,9 +1153,7 @@ def __init__(self, properties: Dict[str, Any], *args, **kwargs): for key, values in self.extras.items(): if isinstance(values.get("packages"), str): - values["packages"] = [ - value.strip() for value in values["packages"].split(",") - ] # type: ignore + values["packages"] = [value.strip() for value in values["packages"].split(",")] # type: ignore if isinstance(values.get("packages_from_raw_bash"), str): out, err = self.check_output_bash_snippet( @@ -1166,9 +1164,7 @@ def __init__(self, properties: Dict[str, Any], *args, **kwargs): f"Error while running apt resource packages_from_raw_bash snippet for '{key}' extras:" ) logger.error(err) - values["packages"] = values.get("packages", []) + [ - value.strip() for value in out.split("\n") - ] # type: ignore + values["packages"] = values.get("packages", []) + [value.strip() for value in out.split("\n")] # type: ignore if ( not isinstance(values.get("repo"), str)