[thorstenp] remove useless semicolons
This commit is contained in:
parent
e90375bad3
commit
eed5dc4e72
5 changed files with 7 additions and 7 deletions
|
@ -151,7 +151,7 @@ class ChatControlBase(MessageControl):
|
||||||
contact = c
|
contact = c
|
||||||
|
|
||||||
MessageControl.__init__(self, type_id, parent_win, widget_name,
|
MessageControl.__init__(self, type_id, parent_win, widget_name,
|
||||||
contact, acct, resource = resource);
|
contact, acct, resource = resource)
|
||||||
|
|
||||||
widget = self.xml.get_widget('history_button')
|
widget = self.xml.get_widget('history_button')
|
||||||
id = widget.connect('clicked', self._on_history_menuitem_activate)
|
id = widget.connect('clicked', self._on_history_menuitem_activate)
|
||||||
|
@ -1024,7 +1024,7 @@ class ChatControlBase(MessageControl):
|
||||||
conv_buf.set_text(self.sent_history[self.sent_history_pos])
|
conv_buf.set_text(self.sent_history[self.sent_history_pos])
|
||||||
elif direction == 'down':
|
elif direction == 'down':
|
||||||
if self.sent_history_pos >= size - 1:
|
if self.sent_history_pos >= size - 1:
|
||||||
conv_buf.set_text(self.orig_msg);
|
conv_buf.set_text(self.orig_msg)
|
||||||
self.orig_msg = None
|
self.orig_msg = None
|
||||||
self.sent_history_pos = size
|
self.sent_history_pos = size
|
||||||
return
|
return
|
||||||
|
|
|
@ -1420,7 +1420,7 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco,
|
||||||
method = iq_obj.getTagAttr('confirm', 'method')
|
method = iq_obj.getTagAttr('confirm', 'method')
|
||||||
url = iq_obj.getTagAttr('confirm', 'url')
|
url = iq_obj.getTagAttr('confirm', 'url')
|
||||||
msg = iq_obj.getTagData('body') # In case it's a message with a body
|
msg = iq_obj.getTagData('body') # In case it's a message with a body
|
||||||
self.dispatch('HTTP_AUTH', (method, url, id, iq_obj, msg));
|
self.dispatch('HTTP_AUTH', (method, url, id, iq_obj, msg))
|
||||||
raise common.xmpp.NodeProcessed
|
raise common.xmpp.NodeProcessed
|
||||||
|
|
||||||
def _ErrorCB(self, con, iq_obj):
|
def _ErrorCB(self, con, iq_obj):
|
||||||
|
@ -1524,7 +1524,7 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco,
|
||||||
iq_obj = iq_obj.buildReply('result')
|
iq_obj = iq_obj.buildReply('result')
|
||||||
qp = iq_obj.getTag('query')
|
qp = iq_obj.getTag('query')
|
||||||
if not HAS_IDLE:
|
if not HAS_IDLE:
|
||||||
qp.attrs['seconds'] = '0';
|
qp.attrs['seconds'] = '0'
|
||||||
else:
|
else:
|
||||||
qp.attrs['seconds'] = idle.getIdleSec()
|
qp.attrs['seconds'] = idle.getIdleSec()
|
||||||
|
|
||||||
|
|
|
@ -751,7 +751,7 @@ class Logger:
|
||||||
# the data field contains binary object (gzipped data), this is a hack
|
# the data field contains binary object (gzipped data), this is a hack
|
||||||
# to get that data without trying to convert it to unicode
|
# to get that data without trying to convert it to unicode
|
||||||
try:
|
try:
|
||||||
self.cur.execute('SELECT hash_method, hash, data FROM caps_cache;');
|
self.cur.execute('SELECT hash_method, hash, data FROM caps_cache;')
|
||||||
except sqlite.OperationalError:
|
except sqlite.OperationalError:
|
||||||
# might happen when there's no caps_cache table yet
|
# might happen when there's no caps_cache table yet
|
||||||
# -- there's no data to read anyway then
|
# -- there's no data to read anyway then
|
||||||
|
|
|
@ -94,7 +94,7 @@ class ZeroconfListener(IdleObject):
|
||||||
entry = self.conn_holder.getRoster().getItem(jid)
|
entry = self.conn_holder.getRoster().getItem(jid)
|
||||||
if (entry['address'] == ipaddr):
|
if (entry['address'] == ipaddr):
|
||||||
from_jid = jid
|
from_jid = jid
|
||||||
break;
|
break
|
||||||
P2PClient(sock[0], ipaddr, sock[1][1], self.conn_holder, [], from_jid)
|
P2PClient(sock[0], ipaddr, sock[1][1], self.conn_holder, [], from_jid)
|
||||||
|
|
||||||
def disconnect(self):
|
def disconnect(self):
|
||||||
|
|
|
@ -175,7 +175,7 @@ class GroupchatControl(ChatControlBase):
|
||||||
|
|
||||||
def __init__(self, parent_win, contact, acct, is_continued=False):
|
def __init__(self, parent_win, contact, acct, is_continued=False):
|
||||||
ChatControlBase.__init__(self, self.TYPE_ID, parent_win,
|
ChatControlBase.__init__(self, self.TYPE_ID, parent_win,
|
||||||
'muc_child_vbox', contact, acct);
|
'muc_child_vbox', contact, acct)
|
||||||
|
|
||||||
self.is_continued=is_continued
|
self.is_continued=is_continued
|
||||||
self.is_anonymous = True
|
self.is_anonymous = True
|
||||||
|
|
Loading…
Add table
Reference in a new issue