CodingStandards : No space in indentation
This commit is contained in:
parent
a707eaa050
commit
314a52708e
|
@ -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])
|
||||
|
|
|
@ -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')
|
||||
|
|
|
@ -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])
|
||||
|
|
|
@ -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':
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue