Author: asterix
Date: 2008-10-20 17:16:01 +0200 (Mon, 20 Oct 2008)
New Revision: 10539
Modified:
trunk/src/chat_control.py
trunk/src/common/connection_handlers.py
trunk/src/common/logger.py
trunk/src/common/zeroconf/client_zeroconf.py
trunk/src/groupchat_control.py
Log:
[thorstenp] remove useless ;
Modified: trunk/src/chat_control.py
===================================================================
--- trunk/src/chat_control.py 2008-10-20 11:46:09 UTC (rev 10538)
+++ trunk/src/chat_control.py 2008-10-20 15:16:01 UTC (rev 10539)
@@ -152,7 +152,7 @@
contact = c
MessageControl.__init__(self, type_id, parent_win, widget_name,
- contact, acct, resource = resource);
+ contact, acct, resource = resource)
widget = self.xml.get_widget('history_button')
id = widget.connect('clicked', self._on_history_menuitem_activate)
@@ -956,7 +956,7 @@
conv_buf.set_text(self.sent_history[self.sent_history_pos])
elif direction == 'down':
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.sent_history_pos = size
return
Modified: trunk/src/common/connection_handlers.py
===================================================================
--- trunk/src/common/connection_handlers.py 2008-10-20 11:46:09 UTC (rev 10538)
+++ trunk/src/common/connection_handlers.py 2008-10-20 15:16:01 UTC (rev 10539)
@@ -1414,7 +1414,7 @@
method = iq_obj.getTagAttr('confirm', 'method')
url = iq_obj.getTagAttr('confirm', 'url')
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
def _ErrorCB(self, con, iq_obj):
@@ -1518,7 +1518,7 @@
iq_obj = iq_obj.buildReply('result')
qp = iq_obj.getTag('query')
if not HAS_IDLE:
- qp.attrs['seconds'] = '0';
+ qp.attrs['seconds'] = '0'
else:
qp.attrs['seconds'] = idle.getIdleSec()
Modified: trunk/src/common/logger.py
===================================================================
--- trunk/src/common/logger.py 2008-10-20 11:46:09 UTC (rev 10538)
+++ trunk/src/common/logger.py 2008-10-20 15:16:01 UTC (rev 10539)
@@ -708,7 +708,7 @@
# the data field contains binary object (gzipped data), this is a hack
# to get that data without trying to convert it to unicode
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:
# might happen when there's no caps_cache table yet
# -- there's no data to read anyway then
Modified: trunk/src/common/zeroconf/client_zeroconf.py
===================================================================
--- trunk/src/common/zeroconf/client_zeroconf.py 2008-10-20 11:46:09 UTC (rev 10538)
+++ trunk/src/common/zeroconf/client_zeroconf.py 2008-10-20 15:16:01 UTC (rev 10539)
@@ -94,7 +94,7 @@
entry = self.conn_holder.getRoster().getItem(jid)
if (entry['address'] == ipaddr):
from_jid = jid
- break;
+ break
P2PClient(sock[0], ipaddr, sock[1][1], self.conn_holder, [], from_jid)
def disconnect(self):
Modified: trunk/src/groupchat_control.py
===================================================================
--- trunk/src/groupchat_control.py 2008-10-20 11:46:09 UTC (rev 10538)
+++ trunk/src/groupchat_control.py 2008-10-20 15:16:01 UTC (rev 10539)
@@ -175,7 +175,7 @@
def __init__(self, parent_win, contact, acct, is_continued=False):
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_anonymous = True