Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
vimauro committed Sep 26, 2024
1 parent 8676420 commit ced58ab
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pyscitt/pyscitt/cli/governance.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,17 @@ def update_scitt_constitution(client: Client, scitt_constitution_path: Path, yes
def get_constitution(client: Client, path: Path):
path.write_text(client.get_constitution())


def clean_pem_file(bundle: str) -> str:
"""
Cleans a PEM file by removing lines that start with '#' or are empty.
"""
return '\n'.join(line for line in bundle.splitlines() if line.strip() and not line.startswith('#'))
return "\n".join(
line
for line in bundle.splitlines()
if line.strip() and not line.startswith("#")
)


def setup_local_development(
client: Client, trust_store_dir: Optional[Path], did_web_ca_certs: Optional[Path]
Expand Down

0 comments on commit ced58ab

Please sign in to comment.