From 508a1fe98701056e072943f38d24733f31e17895 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Sun, 25 Aug 2019 23:19:40 +0200 Subject: [PATCH] Coding style changes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- slixmpp_omemo/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/slixmpp_omemo/__init__.py b/slixmpp_omemo/__init__.py index f97feb9..90fe7aa 100644 --- a/slixmpp_omemo/__init__.py +++ b/slixmpp_omemo/__init__.py @@ -78,9 +78,10 @@ def _load_device_id(data_dir: str) -> int: return did -def fp_from_ik(ik: bytes) -> str: + +def fp_from_ik(identity_key: bytes) -> str: """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: