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

@ -723,7 +723,7 @@ class Jp(object):
pass
else:
if start_session:
self.bridge.profileStartSession(self.args.pwd, self.profile, lambda dummy: callback(), cant_start_session)
self.bridge.profileStartSession(self.args.pwd, self.profile, lambda __: callback(), cant_start_session)
self._auto_loop = True
return
elif not self.bridge.profileIsSessionStarted(self.profile):
@ -739,7 +739,7 @@ class Jp(object):
# a profile can be present without connect option (e.g. on profile creation/deletion)
return
elif self.args.connect is True: # if connection is asked, we connect the profile
self.bridge.connect(self.profile, self.args.pwd, {}, lambda dummy: callback(), cant_connect)
self.bridge.connect(self.profile, self.args.pwd, {}, lambda __: callback(), cant_connect)
self._auto_loop = True
return
else: