changeset 1dcdf1104bac in /home/hg/repos/gajim-plugins
author: Bahtiar `kalkin-` Gadimov <bahtiar(a)gadimov.de>
branches:
details:gajim-plugins?cmd=changeset;node=1dcdf1104bac
description: Fix some formatting
diffstat:
omemo/__init__.py | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
diffs (59 lines):
diff -r 586934b4a3c1 -r 1dcdf1104bac omemo/__init__.py
--- a/omemo/__init__.py Mon Apr 25 05:17:27 2016 +0200
+++ b/omemo/__init__.py Mon Apr 25 05:51:43 2016 +0200
@@ -22,6 +22,7 @@
import os
import sqlite3
+# pylint: disable=import-error
from common import caps_cache, gajim, ged
from common.pep import SUPPORTED_PERSONAL_USER_EVENTS
from plugins import GajimPlugin
@@ -33,6 +34,7 @@
DeviceListAnnouncement, DevicelistPEP, OmemoMessage, successful,
unpack_device_bundle, unpack_device_list_update, unpack_message)
+
iq_ids_to_callbacks = {}
AXOLOTL_MISSING = 'Please install python-axolotl.'
@@ -49,6 +51,7 @@
class OmemoPlugin(GajimPlugin):
+ # pylint: disable=no-init
omemo_states = {}
@@ -69,8 +72,7 @@
(ged.PRECORE, self.handle_outgoing_msgs),
}
self.config_dialog = None
- self.gui_extension_points = {'chat_control':
- (self.connect_ui, None)}
+ self.gui_extension_points = {'chat_control': (self.connect_ui, None)}
SUPPORTED_PERSONAL_USER_EVENTS.append(DevicelistPEP)
@log_calls('OmemoPlugin')
@@ -307,8 +309,8 @@
device_id : int
The device_id for which we are missing an axolotl session
"""
- log.debug(account_name + '→ Fetch bundle device ' + str(device_id) + '#'
- + jid)
+ log.debug(account_name + '→ Fetch bundle device ' + str(device_id) +
+ '#' + jid)
iq = BundleInformationQuery(jid, device_id)
iq_id = str(iq.getAttr('id'))
iq_ids_to_callbacks[iq_id] = \
@@ -455,8 +457,8 @@
if not state.encryption.is_active(to_jid):
return False
try:
- msg_dict = state.create_msg(gajim.get_jid_from_account(account),
- to_jid, plaintext)
+ msg_dict = state.create_msg(
+ gajim.get_jid_from_account(account), to_jid, plaintext)
if not msg_dict:
return True
encrypted_node = OmemoMessage(msg_dict)