diff sat/plugins/plugin_xep_0048.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_0048.py	Fri Jan 11 10:18:02 2019 +0100
+++ b/sat/plugins/plugin_xep_0048.py	Fri Jan 11 11:13:15 2019 +0100
@@ -265,7 +265,7 @@
             # FIXME: failure are badly managed in plugin XEP-0045. Plugin XEP-0045 need to be fixed before managing errors correctly here
             return {}
 
-        d.addCallbacks(lambda dummy: {}, join_eb)
+        d.addCallbacks(lambda __: {}, join_eb)
         return d
 
     def _bookmarksMenu(self, data, profile):
@@ -325,7 +325,7 @@
         except KeyError:
             raise exceptions.InternalError("Can't find mandatory key")
         d = self.addBookmark(XEP_0048.MUC_TYPE, location, bm_data, profile_key=profile)
-        d.addCallback(lambda dummy: {})
+        d.addCallback(lambda __: {})
         return d
 
     @defer.inlineCallbacks
@@ -431,7 +431,7 @@
         ret = {}
         ret_d = defer.succeed(ret)
 
-        def fillBookmarks(dummy, _storage_location):
+        def fillBookmarks(__, _storage_location):
             bookmarks_ori = getattr(client, "bookmarks_" + _storage_location)
             if bookmarks_ori is None:
                 return ret
@@ -449,7 +449,7 @@
                 else:
                     d = defer.succeed(None)
                 d.addCallback(fillBookmarks, _storage_location)
-                ret_d.addCallback(lambda dummy: d)
+                ret_d.addCallback(lambda __: d)
 
         return ret_d