# HG changeset patch # User Emmanuel Gil Peyrot # Date 1358527988 -3600 # Node ID 9902ec2d8d9bf52a3f70f82ff75adf322f50398b # Parent 1524c2c07256d9de1de8db06ae876c267fce033b Remove useless trailing semicolons. diff -r 1524c2c07256 -r 9902ec2d8d9b frontends/src/quick_frontend/quick_app.py --- a/frontends/src/quick_frontend/quick_app.py Wed Jan 09 22:59:55 2013 +0100 +++ b/frontends/src/quick_frontend/quick_app.py Fri Jan 18 17:53:08 2013 +0100 @@ -298,7 +298,7 @@ def presenceUpdate(self, jabber_id, show, priority, statuses, profile): if not self.check_profile(profile): return - debug (_("presence update for %(jid)s (show=%(show)s, priority=%(priority)s, statuses=%(statuses)s) [profile:%(profile)s]") % {'jid':jabber_id, 'show':show, 'priority':priority, 'statuses':statuses, 'profile':profile}); + debug (_("presence update for %(jid)s (show=%(show)s, priority=%(priority)s, statuses=%(statuses)s) [profile:%(profile)s]") % {'jid':jabber_id, 'show':show, 'priority':priority, 'statuses':statuses, 'profile':profile}) from_jid=JID(jabber_id) debug ("from_jid.short=%(from_jid)s whoami.short=%(whoami)s" % {'from_jid':from_jid.short, 'whoami':self.profiles[profile]['whoami'].short}) diff -r 1524c2c07256 -r 9902ec2d8d9b src/memory/persistent.py --- a/src/memory/persistent.py Wed Jan 09 22:59:55 2013 +0100 +++ b/src/memory/persistent.py Fri Jan 18 17:53:08 2013 +0100 @@ -34,7 +34,7 @@ """@param namespace: unique namespace for this dictionary @param profile: profile which *MUST* exists, or None for general values""" if not self.storage: - error(_("PersistentDict can't be used before memory initialisation")); + error(_("PersistentDict can't be used before memory initialisation")) raise MemoryNotInitializedError self._cache = {} self.namespace = namespace diff -r 1524c2c07256 -r 9902ec2d8d9b src/plugins/plugin_exp_pipe.py --- a/src/plugins/plugin_exp_pipe.py Wed Jan 09 22:59:55 2013 +0100 +++ b/src/plugins/plugin_exp_pipe.py Fri Jan 18 17:53:08 2013 +0100 @@ -63,7 +63,7 @@ def _kill_id(self, approval_id, profile): """Delete a waiting_for_approval id, called after timeout @param approval_id: id of _pipe_waiting_for_approval""" - info(_("SI Pipe Transfer: TimeOut reached for id %s") % approval_id); + info(_("SI Pipe Transfer: TimeOut reached for id %s") % approval_id) try: client = self.host.getClient(profile) del client._pipe_waiting_for_approval[approval_id] diff -r 1524c2c07256 -r 9902ec2d8d9b src/plugins/plugin_xep_0047.py --- a/src/plugins/plugin_xep_0047.py Wed Jan 09 22:59:55 2013 +0100 +++ b/src/plugins/plugin_xep_0047.py Fri Jan 18 17:53:08 2013 +0100 @@ -76,7 +76,7 @@ def _timeOut(self, sid, profile): """Delecte current_stream id, called after timeout @param id: id of client.xep_0047_current_stream""" - info(_("In-Band Bytestream: TimeOut reached for id %s [%s]") % (sid, profile)); + info(_("In-Band Bytestream: TimeOut reached for id %s [%s]") % (sid, profile)) self._killId(sid, False, "TIMEOUT", profile) def _killId(self, sid, success=False, failure_reason="UNKNOWN", profile=None): @@ -292,7 +292,7 @@ raise ProfileNotInCacheError if length != None: error(_('stream length not managed yet')) - return; + return data = client.xep_0047_current_stream[sid] = {} data["timer"] = reactor.callLater(TIMEOUT, self._timeOut, sid) data["file_obj"] = file_obj diff -r 1524c2c07256 -r 9902ec2d8d9b src/plugins/plugin_xep_0065.py --- a/src/plugins/plugin_xep_0065.py Wed Jan 09 22:59:55 2013 +0100 +++ b/src/plugins/plugin_xep_0065.py Fri Jan 18 17:53:08 2013 +0100 @@ -507,7 +507,7 @@ def _timeOut(self, sid, profile): """Delecte current_stream id, called after timeout @param id: id of client.xep_0065_current_stream""" - info(_("Socks5 Bytestream: TimeOut reached for id %s [%s]") % (sid, profile)); + info(_("Socks5 Bytestream: TimeOut reached for id %s [%s]") % (sid, profile)) self._killId(sid, False, "TIMEOUT", profile) def _killId(self, sid, success=False, failure_reason="UNKNOWN", profile=None): @@ -561,7 +561,7 @@ if length != None: error(_('stream length not managed yet')) - return; + return profile_jid = client.jid xmlstream = client.xmlstream diff -r 1524c2c07256 -r 9902ec2d8d9b src/plugins/plugin_xep_0096.py --- a/src/plugins/plugin_xep_0096.py Wed Jan 09 22:59:55 2013 +0100 +++ b/src/plugins/plugin_xep_0096.py Fri Jan 18 17:53:08 2013 +0100 @@ -63,7 +63,7 @@ def _kill_id(self, approval_id, profile): """Delete a waiting_for_approval id, called after timeout @param approval_id: id of _xep_0096_waiting_for_approval""" - info(_("SI File Transfer: TimeOut reached for id %s") % approval_id); + info(_("SI File Transfer: TimeOut reached for id %s") % approval_id) try: client = self.host.getClient(profile) del client._xep_0096_waiting_for_approval[approval_id]