comparison sat/memory/disco.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 c3f59c1dcb0a
children cb34af35af6f
comparison
equal deleted inserted replaced
2764:92af49cde255 2765:378188abe941
297 defers_list.append(info_d) 297 defers_list.append(info_d)
298 return defer.DeferredList(defers_list) 298 return defer.DeferredList(defers_list)
299 299
300 d = self.getItems(client, jid_) 300 d = self.getItems(client, jid_)
301 d.addCallback(gotItems) 301 d.addCallback(gotItems)
302 d.addCallback(lambda dummy: found_entities) 302 d.addCallback(lambda __: found_entities)
303 reactor.callLater( 303 reactor.callLater(
304 TIMEOUT, d.cancel 304 TIMEOUT, d.cancel
305 ) # FIXME: one bad service make a general timeout 305 ) # FIXME: one bad service make a general timeout
306 return d 306 return d
307 307
336 defer_list.append(infos_d) 336 defer_list.append(infos_d)
337 return defer.DeferredList(defer_list) 337 return defer.DeferredList(defer_list)
338 338
339 d = self.getItems(client, jid_) 339 d = self.getItems(client, jid_)
340 d.addCallback(gotItems) 340 d.addCallback(gotItems)
341 d.addCallback(lambda dummy: found_entities) 341 d.addCallback(lambda __: found_entities)
342 reactor.callLater( 342 reactor.callLater(
343 TIMEOUT, d.cancel 343 TIMEOUT, d.cancel
344 ) # FIXME: one bad service make a general timeout 344 ) # FIXME: one bad service make a general timeout
345 return d 345 return d
346 346