aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormathieui2019-08-24 23:37:25 (GMT)
committerMaxime “pep” Buquet2019-12-27 17:58:48 (GMT)
commit5c4571751ec790f9788e558d9c40017ef872b862 (patch)
tree61f8d8d233fdf652509b761a813d3ae33acf66f2
parentb40de0bcbe1c380c24ad82d4e9d6f771baea9c8c (diff)
downloadpoezio-5c4571751ec790f9788e558d9c40017ef872b862.tar.gz
poezio-5c4571751ec790f9788e558d9c40017ef872b862.tar.xz
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 f4d75de..910e3d0 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)