diff sat/plugins/plugin_xep_0033.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 ab2696e34d29
line wrap: on
line diff
--- a/sat/plugins/plugin_xep_0033.py	Fri Jan 11 10:18:02 2019 +0100
+++ b/sat/plugins/plugin_xep_0033.py	Fri Jan 11 11:13:15 2019 +0100
@@ -131,7 +131,7 @@
                 raise failure.Failure(exceptions.CancelError(u"Cancelled by XEP-0033"))
 
             d = self.host.findFeaturesSet(client, [NS_ADDRESS])
-            d.addCallbacks(discoCallback, lambda dummy: discoCallback(None))
+            d.addCallbacks(discoCallback, lambda __: discoCallback(None))
             return d
 
         post_xml_treatments.addCallback(treatment)
@@ -194,7 +194,7 @@
             )
             d.callback([NS_ADDRESS])
             defer_list.append(d)
-        d = defer.Deferred().addCallback(lambda dummy: self.internal_data.pop(timestamp))
+        d = defer.Deferred().addCallback(lambda __: self.internal_data.pop(timestamp))
         defer.DeferredList(defer_list).chainDeferred(d)
 
     def messageReceivedTrigger(self, client, message, post_treat):