#NEWLINE# def _processMicrodescriptorBlockResult( self , result , requested ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# micro_descs = _decompressAndSplitResult ( result ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# return requested #NEWLINE# #UNINDENT# processed = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for m in micro_descs : #NEWLINE# #INDENT# hashed = b64encode ( sha256 ( m ) . digest ( ) ) . rstrip ( '=' ) #NEWLINE# if ( hashed not in requested ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# desc = microdescriptor . Microdescriptor ( m ) #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# processed [ desc . digest ] = desc #NEWLINE# requested . remove ( hashed ) #NEWLINE# #UNINDENT# self . _saveProcessedMicrodescriptors ( processed ) #NEWLINE# return m