use pathlib everywhere

This commit is contained in:
Jörg Thalheim
2024-09-02 18:25:17 +02:00
parent 9de48de991
commit 1fa0e72bea
28 changed files with 88 additions and 113 deletions

View File

@@ -16,7 +16,7 @@ def extract_public_key(filepath: Path) -> str:
Extracts the public key from a given text file.
"""
try:
with open(filepath) as file:
with filepath.open() as file:
for line in file:
# Check if the line contains the public key
if line.startswith("# public key:"):