From 28fe0d04c7629c974192c8af869466cdb9b39ab9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Thu, 16 Dec 2021 01:05:58 +0100 Subject: [PATCH] Remove unused variable in for loop 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slixmpp_omemo/__init__.py b/slixmpp_omemo/__init__.py index 0b81463..9d74a92 100644 --- a/slixmpp_omemo/__init__.py +++ b/slixmpp_omemo/__init__.py @@ -116,7 +116,7 @@ def _generate_encrypted_payload(encrypted) -> Encrypted: if 'payload' in encrypted: tag['payload']['value'] = b64enc(encrypted['payload']) - for bare_jid, devices in encrypted['keys'].items(): + for devices in encrypted['keys'].values(): for rid, device in devices.items(): key = Key() key['value'] = b64enc(device['data'])