Mercurial > libervia-backend
diff sat/plugins/plugin_xep_0065.py @ 2765:378188abe941
misc: replaced all "dummy" by the more conventional and readable "__" ("_" being used for gettext)
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 11 Jan 2019 11:13:15 +0100 |
parents | 56f94936df1e |
children | 003b8b4b56a7 |
line wrap: on
line diff
--- a/sat/plugins/plugin_xep_0065.py Fri Jan 11 10:18:02 2019 +0100 +++ b/sat/plugins/plugin_xep_0065.py Fri Jan 11 11:13:15 2019 +0100 @@ -699,7 +699,7 @@ def getSession(self): return self.session - def startTransfer(self, dummy=None, chunk_size=None): + def startTransfer(self, __=None, chunk_size=None): self.session[TIMER_KEY].cancel() self._protocol_instance.startTransfer(chunk_size) @@ -1019,7 +1019,7 @@ ) if connection_cb is not None: d.addCallback( - lambda dummy, candidate=candidate, client=client: connection_cb( + lambda __, candidate=candidate, client=client: connection_cb( client, candidate ) ) @@ -1203,7 +1203,7 @@ log.info(u"A Socks5 proxy is used") d = self.connectCandidate(client, candidate, session_data["hash"]) d.addCallback( - lambda dummy: candidate.activate( + lambda __: candidate.activate( session_data["id"], session_data["peer_jid"], client ) ) @@ -1211,7 +1211,7 @@ else: d = defer.succeed(None) - d.addCallback(lambda dummy: candidate.startTransfer(session_data["hash"])) + d.addCallback(lambda __: candidate.startTransfer(session_data["hash"])) def _activationEb(self, failure): log.warning(u"Proxy activation error: {}".format(failure.value))