diff cagou/core/cagou_main.py @ 284:ca4daced4638

misc: replaced "dummy" by "__"
author Goffi <goffi@goffi.org>
date Mon, 25 Mar 2019 07:11:09 +0100
parents 1b835bcfa663
children 3f7e227aab00
line wrap: on
line diff
--- a/cagou/core/cagou_main.py	Mon Mar 25 07:11:09 2019 +0100
+++ b/cagou/core/cagou_main.py	Mon Mar 25 07:11:09 2019 +0100
@@ -202,7 +202,7 @@
         app = App.get_running_app()
         self.notifs_icon.addNotif(app.host.showExtraUI, widget=widget)
 
-    def _displayNextNote(self, dummy=None):
+    def _displayNextNote(self, __=None):
         screen = Screen()
         try:
             idx = self.notes.index(self.notes_last) + 1
@@ -473,7 +473,7 @@
             if failure.check(ConnectionRefusedError) and self.retried < 100:
                 if self.retried % 20 == 0:
                     log.debug("backend not ready, retrying ({})".format(self.retried))
-                Clock.schedule_once(lambda dummy: self.connectBridge(), 0.05)
+                Clock.schedule_once(lambda __: self.connectBridge(), 0.05)
                 return
         super(Cagou, self)._bridgeEb(failure)
 
@@ -499,7 +499,7 @@
         self.app.initFrontendState()
         self.postInit()
 
-    def postInit(self, dummy=None):
+    def postInit(self, __=None):
         # FIXME: resize doesn't work with SDL2 on android, so we use below_target for now
         self.app.root_window.softinput_mode = "below_target"
         profile_manager = self.app._profile_manager