#NEWLINE# @ classmethod #NEWLINE# def from_dict( cls , data ) : #NEWLINE# #INDENT# 'Translates the given ``dict`` into an instance of this class.' #NEWLINE# def decode_results( results ) : #NEWLINE# #INDENT# if ( not results ) : #NEWLINE# #INDENT# return [ ] #NEWLINE# #UNINDENT# new_results = [ ] #NEWLINE# for ( data , failures ) in results : #NEWLINE# #INDENT# new_failures = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for ( key , data ) in six . iteritems ( failures ) : #NEWLINE# #INDENT# new_failures [ key ] = ft . Failure . from_dict ( data ) #NEWLINE# #UNINDENT# new_results . append ( ( data , new_failures ) ) #NEWLINE# #UNINDENT# return new_results #NEWLINE# #UNINDENT# obj = super ( RetryDetail , cls ) . from_dict ( data ) #NEWLINE# obj . results = decode_results ( obj . results ) #NEWLINE# return decode_results