#NEWLINE# def getListLengths( self , keys ) : #NEWLINE# #INDENT# dl = [ ] #NEWLINE# for key in keys : #NEWLINE# #INDENT# d = self . factory . client . llen ( key ) #NEWLINE# d . addCallback ( self . sendMetric , key ) #NEWLINE# d . addErrback ( log . err ) #NEWLINE# dl . append ( key ) #NEWLINE# #UNINDENT# return defer . gatherResults ( dl )