Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
lloesche committed Oct 2, 2023
1 parent e73c41e commit fceb2b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion resotolib/resotolib/x509.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit fceb2b2

Please sign in to comment.