Mercurial > libervia-desktop-kivy
changeset 284:ca4daced4638
misc: replaced "dummy" by "__"
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 25 Mar 2019 07:11:09 +0100 |
parents | c73a7cd36b54 |
children | 3f7e227aab00 |
files | cagou/core/cagou_main.py cagou/core/kivy_hack.py cagou/core/profile_manager.py cagou/core/simple_xhtml.py cagou/plugins/plugin_transfer_voice.py cagou/plugins/plugin_wid_chat.py |
diffstat | 6 files changed, 8 insertions(+), 8 deletions(-) [+] |
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
--- a/cagou/core/kivy_hack.py Mon Mar 25 07:11:09 2019 +0100 +++ b/cagou/core/kivy_hack.py Mon Mar 25 07:11:09 2019 +0100 @@ -39,7 +39,7 @@ root_logger = logging.root kivy_logger = logging.getLogger('kivy') ori_addHandler = kivy_logger.addHandler - kivy_logger.addHandler = lambda dummy: None + kivy_logger.addHandler = lambda __: None ori_setLevel = kivy_logger.setLevel if kivy_level == 'FOLLOW': # level is following SàT level
--- a/cagou/core/profile_manager.py Mon Mar 25 07:11:09 2019 +0100 +++ b/cagou/core/profile_manager.py Mon Mar 25 07:11:09 2019 +0100 @@ -53,7 +53,7 @@ self.pm.profiles_screen.reload() G.host.bridge.profileStartSession( self.password.text, profile, - callback=lambda dummy: self._sessionStarted(profile), + callback=lambda __: self._sessionStarted(profile), errback=self.onCreationFailure) def _sessionStarted(self, profile):
--- a/cagou/core/simple_xhtml.py Mon Mar 25 07:11:09 2019 +0100 +++ b/cagou/core/simple_xhtml.py Mon Mar 25 07:11:09 2019 +0100 @@ -404,7 +404,7 @@ styles in self._css_styles will be removed and the attribute will be deleted """ - for tag, dummy in reversed(self._css_styles): + for tag, __ in reversed(self._css_styles): self._removeStyle(tag) del self._css_styles
--- a/cagou/plugins/plugin_transfer_voice.py Mon Mar 25 07:11:09 2019 +0100 +++ b/cagou/plugins/plugin_transfer_voice.py Mon Mar 25 07:11:09 2019 +0100 @@ -78,7 +78,7 @@ self.recording = not self.recording - def _stopPlaying(self, dummy=None): + def _stopPlaying(self, __=None): if self.record_time is None: log.error("_stopPlaying should no be called when record_time is None") return
--- a/cagou/plugins/plugin_wid_chat.py Mon Mar 25 07:11:09 2019 +0100 +++ b/cagou/plugins/plugin_wid_chat.py Mon Mar 25 07:11:09 2019 +0100 @@ -497,7 +497,7 @@ profile = profile, size_hint = (0.5, None), nick = nick, - on_release=lambda dummy, txt=jid_.bare: self.onHeaderInputCompleted(wid, txt) + on_release=lambda __, txt=jid_.bare: self.onHeaderInputCompleted(wid, txt) ) dropdown.add_widget(btn) else: