misc: replaced all "dummy" by the more conventional and readable "__" ("_" being used for gettext)
This commit is contained in:
parent
fa0179f87e
commit
7a9ee35cfc
6 changed files with 215 additions and 215 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ class AccountCreate(base.CommandBase):
|
|||
errback=self.errback,
|
||||
)
|
||||
|
||||
def _session_started(self, dummy):
|
||||
def _session_started(self, __):
|
||||
self.host.bridge.setParam(
|
||||
"JabberID",
|
||||
self.args.jid,
|
||||
|
|
|
|||
|
|
@ -201,7 +201,7 @@ class Get(base.CommandBase):
|
|||
if self.args.with_jid:
|
||||
profile = invitation_data[u"guest_profile"]
|
||||
|
||||
def session_started(dummy):
|
||||
def session_started(__):
|
||||
self.host.bridge.asyncGetParamA(
|
||||
u"JabberID",
|
||||
u"Connection",
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ class Purge(base.CommandBase):
|
|||
print "Nothing to do - there's a from and/or to subscription(s) between profile [%s] and each of its contacts" % self.host.profile
|
||||
elif self.ask_confirmation(no_sub, no_from, no_to):
|
||||
for contact in no_sub + no_from + no_to:
|
||||
self.host.bridge.delContact(contact, profile_key=self.host.profile, callback=lambda dummy: None, errback=lambda failure: None)
|
||||
self.host.bridge.delContact(contact, profile_key=self.host.profile, callback=lambda __: None, errback=lambda failure: None)
|
||||
self.host.quit()
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -533,7 +533,7 @@ class XMLUIDialog(xmlui_base.XMLUIDialog):
|
|||
dialog_factory = WidgetFactory()
|
||||
read_only = False
|
||||
|
||||
def show(self, dummy=None):
|
||||
def show(self, __=None):
|
||||
self.dlg.show()
|
||||
|
||||
def _xmluiClose(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue