Mercurial > libervia-backend
diff sat/plugins/plugin_misc_room_game.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/plugins/plugin_misc_room_game.py Fri Jan 11 10:18:02 2019 +0100 +++ b/sat/plugins/plugin_misc_room_game.py Fri Jan 11 11:13:15 2019 +0100 @@ -488,7 +488,7 @@ user_jid = self.host.getJidNStream(profile)[0] d = self.host.plugins["XEP-0045"].join(room_jid, user_jid.user, {}, profile) return d.addCallback( - lambda dummy: self._createOrInvite(client, room_jid, other_players) + lambda __: self._createOrInvite(client, room_jid, other_players) ) def userJoinedTrigger(self, room, user, profile): @@ -520,7 +520,7 @@ ) return True other_players = self.invitations[room_jid][batch][1] - (auth, nicks, dummy) = self._checkWaitAuth(room, other_players) + (auth, nicks, __) = self._checkWaitAuth(room, other_players) if auth: del self.invitations[room_jid][batch] nicks.insert(0, profile_nick) # add the referee