From fceb2b240cf3c0ac36cfa34fcd24368c73668226 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20L=C3=B6sche?= Date: Mon, 2 Oct 2023 13:37:39 +0200 Subject: [PATCH] black --- resotolib/resotolib/x509.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resotolib/resotolib/x509.py b/resotolib/resotolib/x509.py index d58fb34cc4..62fe2e462b 100644 --- a/resotolib/resotolib/x509.py +++ b/resotolib/resotolib/x509.py @@ -211,7 +211,9 @@ def gen_ca_bundle_bytes(certs: Union[Certificate, List[Certificate]], include_ce return bytes(content) -def write_ca_bundle(certs: Union[Certificate, List[Certificate]], cert_path: str, include_certifi: bool = True, rename: bool = True) -> None: +def write_ca_bundle( + certs: Union[Certificate, List[Certificate]], cert_path: str, include_certifi: bool = True, rename: bool = True +) -> None: tmp_cert_path = f"{cert_path}.tmp" if rename else cert_path with open(tmp_cert_path, "wb") as f: f.write(gen_ca_bundle_bytes(certs, include_certifi))