diff sat/stdui/ui_profile_manager.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/stdui/ui_profile_manager.py	Fri Jan 11 10:18:02 2019 +0100
+++ b/sat/stdui/ui_profile_manager.py	Fri Jan 11 11:13:15 2019 +0100
@@ -91,7 +91,7 @@
             first = False
             eb_profile = None
         d = self.host.memory.startSession(password, profile)
-        d.addCallback(lambda dummy: {"validated": C.BOOL_TRUE})
+        d.addCallback(lambda __: {"validated": C.BOOL_TRUE})
         d.addErrback(self._startSessionEb, first, eb_profile)
         return d
 
@@ -143,7 +143,7 @@
         d = self.host.memory.setParam(
             "Password", xmpp_password, "Connection", profile_key=profile
         )
-        d.addCallback(lambda dummy: self.host.connect(profile))
-        d.addCallback(lambda dummy: {})
-        d.addErrback(lambda dummy: self._changeXMPPPassword({}, profile))
+        d.addCallback(lambda __: self.host.connect(profile))
+        d.addCallback(lambda __: {})
+        d.addErrback(lambda __: self._changeXMPPPassword({}, profile))
         return d