diff sat_frontends/quick_frontend/quick_app.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 eb69ec549d05
children 003b8b4b56a7
line wrap: on
line diff
--- a/sat_frontends/quick_frontend/quick_app.py	Fri Jan 11 10:18:02 2019 +0100
+++ b/sat_frontends/quick_frontend/quick_app.py	Fri Jan 11 11:13:15 2019 +0100
@@ -123,7 +123,7 @@
         autoconnect = C.bool(value_str)
         if autoconnect and not self.connected:
             self.host.connect(
-                self.profile, callback=lambda dummy: self._plug_profile_afterconnect()
+                self.profile, callback=lambda __: self._plug_profile_afterconnect()
             )
         else:
             self._plug_profile_afterconnect()
@@ -557,7 +557,7 @@
 
     def connect(self, profile, callback=None, errback=None):
         if not callback:
-            callback = lambda dummy: None
+            callback = lambda __: None
         if not errback:
 
             def errback(failure):
@@ -727,7 +727,7 @@
             extra = {}
         if callback is None:
             callback = (
-                lambda dummy=None: None
+                lambda __=None: None
             )  # FIXME: optional argument is here because pyjamas doesn't support callback
                #        without arg with json proxy
         if errback is None: