diff sat_frontends/primitivus/xmlui.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 5c2ed8a5ae22
children 003b8b4b56a7
line wrap: on
line diff
--- a/sat_frontends/primitivus/xmlui.py	Fri Jan 11 10:18:02 2019 +0100
+++ b/sat_frontends/primitivus/xmlui.py	Fri Jan 11 11:13:15 2019 +0100
@@ -343,7 +343,7 @@
         PrimitivusDialog.__init__(self, _xmlui_parent)
         xmlui.MessageDialog.__init__(self, _xmlui_parent)
         sat_widgets.Alert.__init__(
-            self, title, message, ok_cb=lambda dummy: self._xmluiClose()
+            self, title, message, ok_cb=lambda __: self._xmluiClose()
         )
 
 
@@ -362,8 +362,8 @@
             self,
             title,
             message,
-            no_cb=lambda dummy: self._xmluiCancelled(),
-            yes_cb=lambda dummy: self._xmluiValidated(),
+            no_cb=lambda __: self._xmluiCancelled(),
+            yes_cb=lambda __: self._xmluiValidated(),
         )
 
 
@@ -380,7 +380,7 @@
         files_management.FileDialog.__init__(
             self,
             ok_cb=lambda path: self._xmluiValidated({"path": path}),
-            cancel_cb=lambda dummy: self._xmluiCancelled(),
+            cancel_cb=lambda __: self._xmluiCancelled(),
             message=message,
             title=title,
             style=style,
@@ -458,7 +458,7 @@
                         buttons.append(urwid.Button(_("Cancel"), self.onFormCancelled))
                 else:
                     buttons.append(
-                        urwid.Button(_("OK"), on_press=lambda dummy: self._xmluiClose())
+                        urwid.Button(_("OK"), on_press=lambda __: self._xmluiClose())
                     )
                 max_len = max([len(button.get_label()) for button in buttons])
                 grid_wid = urwid.GridFlow(buttons, max_len + 4, 1, 0, "center")