diff sat/plugins/plugin_xep_0166.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_0166.py	Fri Jan 11 10:18:02 2019 +0100
+++ b/sat/plugins/plugin_xep_0166.py	Fri Jan 11 11:13:15 2019 +0100
@@ -876,7 +876,7 @@
 
         d_list = defer.DeferredList(defers_list)
         d_list.addCallback(
-            lambda dummy: self._callPlugins(
+            lambda __: self._callPlugins(
                 client,
                 XEP_0166.A_PREPARE_RESPONDER,
                 session,
@@ -884,14 +884,14 @@
                 elements=False,
             )
         )
-        d_list.addCallback(lambda dummy: iq_elt.send())
+        d_list.addCallback(lambda __: iq_elt.send())
 
-        def changeState(dummy, session):
+        def changeState(__, session):
             session["state"] = STATE_ACTIVE
 
         d_list.addCallback(changeState, session)
         d_list.addCallback(
-            lambda dummy: self._callPlugins(
+            lambda __: self._callPlugins(
                 client, XEP_0166.A_ACCEPTED_ACK, session, elements=False
             )
         )
@@ -920,7 +920,7 @@
         )
         terminate_dlist = defer.DeferredList(terminate_defers)
 
-        terminate_dlist.addCallback(lambda dummy: self._delSession(client, session["id"]))
+        terminate_dlist.addCallback(lambda __: self._delSession(client, session["id"]))
         client.send(xmlstream.toResponse(request, "result"))
 
     def onSessionAccept(self, client, request, jingle_elt, session):
@@ -951,7 +951,7 @@
 
         # after negociations we start the transfer
         negociate_dlist.addCallback(
-            lambda dummy: self._callPlugins(
+            lambda __: self._callPlugins(
                 client, XEP_0166.A_START, session, app_method_name=None, elements=False
             )
         )
@@ -1109,7 +1109,7 @@
 
         # after negociations we start the transfer
         negociate_dlist.addCallback(
-            lambda dummy: self._callPlugins(
+            lambda __: self._callPlugins(
                 client, XEP_0166.A_START, session, app_method_name=None, elements=False
             )
         )