Commit d8173a24 authored by Vincent Pelletier's avatar Vincent Pelletier Committed by Vincent Pelletier

utils: Make coding style a bit more consistent.

parent 9d55f8d6
...@@ -322,7 +322,7 @@ def dump_certificate(data): ...@@ -322,7 +322,7 @@ def dump_certificate(data):
""" """
Serialise a certificate as PEM-encoded data. Serialise a certificate as PEM-encoded data.
""" """
return data.public_bytes(serialization.Encoding.PEM) return data.public_bytes(encoding=serialization.Encoding.PEM)
def load_certificate_request(data): def load_certificate_request(data):
""" """
...@@ -340,9 +340,7 @@ def dump_certificate_request(data): ...@@ -340,9 +340,7 @@ def dump_certificate_request(data):
""" """
Serialise acertificate request as PEM-encoded data. Serialise acertificate request as PEM-encoded data.
""" """
return data.public_bytes( return data.public_bytes(encoding=serialization.Encoding.PEM)
encoding=serialization.Encoding.PEM,
)
def load_privatekey(data): def load_privatekey(data):
""" """
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment