comparison sat/plugins/plugin_xep_0077.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 6c89cf856d28
children 003b8b4b56a7
comparison
equal deleted inserted replaced
2764:92af49cde255 2765:378188abe941
250 250
251 def changePassword(self, client, new_password): 251 def changePassword(self, client, new_password):
252 iq_elt = self.buildRegisterIQ(client.xmlstream, client.jid, new_password) 252 iq_elt = self.buildRegisterIQ(client.xmlstream, client.jid, new_password)
253 d = iq_elt.send(client.jid.host) 253 d = iq_elt.send(client.jid.host)
254 d.addCallback( 254 d.addCallback(
255 lambda dummy: self.host.memory.setParam( 255 lambda __: self.host.memory.setParam(
256 "Password", new_password, "Connection", profile_key=client.profile 256 "Password", new_password, "Connection", profile_key=client.profile
257 ) 257 )
258 ) 258 )
259 return d 259 return d
260 260