#NEWLINE# @ flow . StateHandler ( ) #NEWLINE# def StoreStat( self , responses ) : #NEWLINE# #INDENT# "Stores stat entry in the flow's state." #NEWLINE# if ( not responses . success ) : #NEWLINE# #INDENT# self . Log ( 'Failed to stat file: %s' , responses . status ) #NEWLINE# self . FileFetchFailed ( responses . request . request . payload . pathspec , responses . request . request . name , request_data = responses . request_data ) #NEWLINE# return #NEWLINE# #UNINDENT# stat_entry = responses . First ( ) #NEWLINE# index = responses . request_data [ 'index' ] #NEWLINE# self . state . pending_hashes [ index ] = FileTracker ( stat_entry , self . client_id , responses . request_data , index )