Skip to content

Commit

Permalink
Remove unnecessary cast to Path
Browse files Browse the repository at this point in the history
  • Loading branch information
tysmith committed Nov 15, 2023
1 parent b17a7c5 commit d39806b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions grizzly/common/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,11 @@ def generate_certificates(cert_dir: Path):
.sign(root_key, hashes.SHA256(), default_backend())
)

root_file = Path(cert_dir / "root.pem")
root_file = cert_dir / "root.pem"
root_file.write_bytes(root_cert.public_bytes(serialization.Encoding.PEM))
cert_file = Path(cert_dir / "host.pem")
cert_file = cert_dir / "host.pem"
cert_file.write_bytes(host_cert.public_bytes(serialization.Encoding.PEM))
key_file = Path(cert_dir / "host.key")
key_file = cert_dir / "host.key"
key_file.write_bytes(
host_key.private_bytes(
encoding=serialization.Encoding.PEM,
Expand Down

0 comments on commit d39806b

Please sign in to comment.