Coding style changes

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2019-08-25 23:19:40 +02:00
parent 9d3915a27c
commit 508a1fe987
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

@ -78,9 +78,10 @@ def _load_device_id(data_dir: str) -> int:
return did return did
def fp_from_ik(ik: bytes) -> str:
def fp_from_ik(identity_key: bytes) -> str:
"""Convert identityKey to a string representation (fingerprint)""" """Convert identityKey to a string representation (fingerprint)"""
return codecs.getencoder("hex")(ik)[0].decode("US-ASCII").upper() return codecs.getencoder("hex")(identity_key)[0].decode("US-ASCII").upper()
def _parse_bundle(backend: Backend, bundle: Bundle) -> ExtendedPublicBundle: def _parse_bundle(backend: Backend, bundle: Bundle) -> ExtendedPublicBundle: