comparison sat/plugins/plugin_xep_0033.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 ab2696e34d29
comparison
equal deleted inserted replaced
2764:92af49cde255 2765:378188abe941
129 self.sendAndStoreMessage(mess_data, entries, profile) 129 self.sendAndStoreMessage(mess_data, entries, profile)
130 log.debug("XEP-0033 took over") 130 log.debug("XEP-0033 took over")
131 raise failure.Failure(exceptions.CancelError(u"Cancelled by XEP-0033")) 131 raise failure.Failure(exceptions.CancelError(u"Cancelled by XEP-0033"))
132 132
133 d = self.host.findFeaturesSet(client, [NS_ADDRESS]) 133 d = self.host.findFeaturesSet(client, [NS_ADDRESS])
134 d.addCallbacks(discoCallback, lambda dummy: discoCallback(None)) 134 d.addCallbacks(discoCallback, lambda __: discoCallback(None))
135 return d 135 return d
136 136
137 post_xml_treatments.addCallback(treatment) 137 post_xml_treatments.addCallback(treatment)
138 return True 138 return True
139 139
192 d.addCallbacks( 192 d.addCallbacks(
193 discoCallback, errback, callbackArgs=[jid_], errbackArgs=[jid_] 193 discoCallback, errback, callbackArgs=[jid_], errbackArgs=[jid_]
194 ) 194 )
195 d.callback([NS_ADDRESS]) 195 d.callback([NS_ADDRESS])
196 defer_list.append(d) 196 defer_list.append(d)
197 d = defer.Deferred().addCallback(lambda dummy: self.internal_data.pop(timestamp)) 197 d = defer.Deferred().addCallback(lambda __: self.internal_data.pop(timestamp))
198 defer.DeferredList(defer_list).chainDeferred(d) 198 defer.DeferredList(defer_list).chainDeferred(d)
199 199
200 def messageReceivedTrigger(self, client, message, post_treat): 200 def messageReceivedTrigger(self, client, message, post_treat):
201 """In order to save the addressing information in the history""" 201 """In order to save the addressing information in the history"""
202 202