From 6216bf76426cc4a4bae9ac9da3e39f1ac5937bb5 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Fri, 18 Jan 2013 17:53:08 +0100 Subject: [PATCH] Remove useless trailing semicolons. --- frontends/src/quick_frontend/quick_app.py | 2 +- src/memory/persistent.py | 2 +- src/plugins/plugin_exp_pipe.py | 2 +- src/plugins/plugin_xep_0047.py | 4 ++-- src/plugins/plugin_xep_0065.py | 4 ++-- src/plugins/plugin_xep_0096.py | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/frontends/src/quick_frontend/quick_app.py b/frontends/src/quick_frontend/quick_app.py index 1c11c6ca..6e724566 100644 --- a/frontends/src/quick_frontend/quick_app.py +++ b/frontends/src/quick_frontend/quick_app.py @@ -298,7 +298,7 @@ class QuickApp(object): 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 --git a/src/memory/persistent.py b/src/memory/persistent.py index 3a474647..27a38edd 100644 --- a/src/memory/persistent.py +++ b/src/memory/persistent.py @@ -34,7 +34,7 @@ class PersistentDict: """@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 --git a/src/plugins/plugin_exp_pipe.py b/src/plugins/plugin_exp_pipe.py index b12666dd..2cd922fe 100755 --- a/src/plugins/plugin_exp_pipe.py +++ b/src/plugins/plugin_exp_pipe.py @@ -63,7 +63,7 @@ class Exp_Pipe(): 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 --git a/src/plugins/plugin_xep_0047.py b/src/plugins/plugin_xep_0047.py index a175f348..0db3f565 100644 --- a/src/plugins/plugin_xep_0047.py +++ b/src/plugins/plugin_xep_0047.py @@ -76,7 +76,7 @@ class XEP_0047(): 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 @@ class XEP_0047(): 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 --git a/src/plugins/plugin_xep_0065.py b/src/plugins/plugin_xep_0065.py index 025f3719..b8864693 100755 --- a/src/plugins/plugin_xep_0065.py +++ b/src/plugins/plugin_xep_0065.py @@ -507,7 +507,7 @@ class XEP_0065(): 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 @@ class XEP_0065(): if length != None: error(_('stream length not managed yet')) - return; + return profile_jid = client.jid xmlstream = client.xmlstream diff --git a/src/plugins/plugin_xep_0096.py b/src/plugins/plugin_xep_0096.py index 60cc6345..52aca65a 100755 --- a/src/plugins/plugin_xep_0096.py +++ b/src/plugins/plugin_xep_0096.py @@ -63,7 +63,7 @@ class XEP_0096(): 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]