summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2019-08-25 01:37:25 +0200
committerMaxime “pep” Buquet <pep@bouah.net>2019-12-27 18:58:48 +0100
commit5c4571751ec790f9788e558d9c40017ef872b862 (patch)
tree61f8d8d233fdf652509b761a813d3ae33acf66f2
parentb40de0bcbe1c380c24ad82d4e9d6f771baea9c8c (diff)
downloadpoezio-5c4571751ec790f9788e558d9c40017ef872b862.tar.gz
poezio-5c4571751ec790f9788e558d9c40017ef872b862.tar.bz2
poezio-5c4571751ec790f9788e558d9c40017ef872b862.tar.xz
poezio-5c4571751ec790f9788e558d9c40017ef872b862.zip
omemo: fix an indent error and make mypy happy
-rw-r--r--poezio/plugin_e2ee.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/poezio/plugin_e2ee.py b/poezio/plugin_e2ee.py
index f4d75def..910e3d01 100644
--- a/poezio/plugin_e2ee.py
+++ b/poezio/plugin_e2ee.py
@@ -290,8 +290,8 @@ class E2EEPlugin(BasePlugin):
jid = stanza['to']
tab = self.core.tabs.by_name_and_class(jid, ChatTab)
msg = ' \n\x19%s}Could not send message: %s' % (
- dump_tuple(get_theme().COLOR_CHAR_NACK),
- exc,
+ dump_tuple(get_theme().COLOR_CHAR_NACK),
+ exc,
)
tab.nack_message(msg, stanza['id'], stanza['from'])
# TODO: display exceptions to the user properly
@@ -375,10 +375,10 @@ class E2EEPlugin(BasePlugin):
if self.encrypted_tags is not None:
whitelist += self.encrypted_tags
- whitelist = {'{%s}%s' % tag for tag in whitelist}
+ tag_whitelist = {'{%s}%s' % tag for tag in whitelist}
for elem in message.xml[:]:
- if elem.tag not in whitelist:
+ if elem.tag not in tag_whitelist:
message.xml.remove(elem)
log.debug('Encrypted %s message: %r', self.encryption_name, message)