misc: replaced all "dummy" by the more conventional and readable "__" ("_" being used for gettext)

This commit is contained in:
Goffi 2019-01-11 11:13:15 +01:00
commit 7a9ee35cfc

View file

@ -87,7 +87,7 @@ class ProfileDelete(base.CommandBase):
self.disp(_(u"Profile deletion cancelled"))
self.host.quit(2)
self.host.bridge.asyncDeleteProfile(self.args.profile, callback=lambda dummy: None)
self.host.bridge.asyncDeleteProfile(self.args.profile, callback=lambda __: None)
class ProfileInfo(base.CommandBase):
@ -153,7 +153,7 @@ class ProfileCreate(base.CommandBase):
self.parser.add_argument('-C', '--component', type=base.unicode_decoder, default='',
help=_(u'set to component import name (entry point) if this is a component'))
def _session_started(self, dummy):
def _session_started(self, __):
if self.args.jid:
self.host.bridge.setParam("JabberID", self.args.jid, "Connection", profile_key=self.args.profile)
xmpp_pwd = self.args.password or self.args.xmpp_password