diff --git a/src/common/connection_handlers.py b/src/common/connection_handlers.py index f50d8a85e..c1b3ca99f 100644 --- a/src/common/connection_handlers.py +++ b/src/common/connection_handlers.py @@ -189,7 +189,7 @@ class ConnectionBytestream: ft_add_hosts_to_send = map(lambda e:e.strip(), ft_add_hosts_to_send.split(',')) for ft_host in ft_add_hosts_to_send: - ft_add_hosts.append(ft_host) + ft_add_hosts.append(ft_host) listener = gajim.socks5queue.start_listener(port, sha_str, self._result_socks5_sid, file_props['sid']) if listener == None: @@ -880,7 +880,7 @@ class ConnectionVcard: ext.append('xhtml') if gajim.config.get('outgoing_chat_state_notifactions') != 'disabled': ext.append('cstates') - + if len(ext): c.setAttr('ext', ' '.join(ext)) c.setAttr('ver', gajim.version.split('-', 1)[0]) diff --git a/src/common/helpers.py b/src/common/helpers.py index 382fce0b0..7e6d96d9b 100644 --- a/src/common/helpers.py +++ b/src/common/helpers.py @@ -429,8 +429,8 @@ def launch_browser_mailer(kind, uri): command = 'kfmclient exec' elif gajim.config.get('openwith') == 'exo-open': command = 'exo-open' - elif ((sys.platform == 'darwin') and - (gajim.config.get('openwith') == 'open')): + elif ((sys.platform == 'darwin') and\ + (gajim.config.get('openwith') == 'open')): command = 'open' elif gajim.config.get('openwith') == 'custom': if kind == 'url': @@ -459,8 +459,8 @@ def launch_file_manager(path_to_open): command = 'kfmclient exec' elif gajim.config.get('openwith') == 'exo-open': command = 'exo-open' - elif ((sys.platform == 'darwin') and - (gajim.config.get('openwith') == 'open')): + elif ((sys.platform == 'darwin') and\ + (gajim.config.get('openwith') == 'open')): command = 'open' elif gajim.config.get('openwith') == 'custom': command = gajim.config.get('custom_file_manager') diff --git a/src/common/stanza_session.py b/src/common/stanza_session.py index d8625d6a7..506f280ec 100644 --- a/src/common/stanza_session.py +++ b/src/common/stanza_session.py @@ -571,9 +571,9 @@ class EncryptedStanzaSession(StanzaSession): self.d = crypto.powmod(g, self.y, p) to_add = { 'my_nonce': self.n_s, - 'dhkeys': crypto.encode_mpi(self.d), - 'counter': crypto.encode_mpi(self.c_o), - 'nonce': self.n_o } + 'dhkeys': crypto.encode_mpi(self.d), + 'counter': crypto.encode_mpi(self.c_o), + 'nonce': self.n_o } for name in to_add: b64ed = base64.b64encode(to_add[name]) diff --git a/src/config.py b/src/config.py index 6ec676e5f..d1d86840e 100644 --- a/src/config.py +++ b/src/config.py @@ -419,8 +419,8 @@ class PreferencesWindow: self.applications_combobox.set_active(2) elif gajim.config.get('openwith') == 'exo-open': self.applications_combobox.set_active(3) - elif ((sys.platform == 'darwin') and - (gajim.config.get('openwith') == 'open')): + elif ((sys.platform == 'darwin') and\ + (gajim.config.get('openwith') == 'open')): self.applications_combobox.set_active(1) elif gajim.config.get('openwith') == 'custom': if sys.platform == 'darwin': diff --git a/src/conversation_textview.py b/src/conversation_textview.py index 53b3a68b1..9a88e9586 100644 --- a/src/conversation_textview.py +++ b/src/conversation_textview.py @@ -336,9 +336,9 @@ class ConversationTextview: if None != self.smooth_id: # already scrolling return False self.smooth_id = gobject.timeout_add(self.SCROLL_DELAY, - self.smooth_scroll) + self.smooth_scroll) self.smooth_scroll_timer = Timer(self.MAX_SCROLL_TIME, - self.smooth_scroll_timeout) + self.smooth_scroll_timeout) self.smooth_scroll_timer.start() return False diff --git a/src/dataforms_widget.py b/src/dataforms_widget.py index 95f60ab8b..0cedc65f6 100644 --- a/src/dataforms_widget.py +++ b/src/dataforms_widget.py @@ -342,7 +342,7 @@ class SingleForm(gtk.Table, object): for value, label in field.iter_options(): radio = gtk.RadioButton(first_radio, label=label) radio.connect('toggled', - self.on_list_single_radiobutton_toggled, field, value) + self.on_list_single_radiobutton_toggled, field, value) if first_radio is None: first_radio = radio if field.value == '': # TODO: is None when done