#NEWLINE# def get_file_reader( self , hostname , filename , log_history ) : #NEWLINE# #INDENT# 'Get FileReader instance.\n\n        :param fullname: fullname of installing host.\n        :param filename: the filename of the log file.\n\n        :returns: :class:`FileReader` instance if it is not filtered.\n        ' #NEWLINE# pathname = os . path . join ( self . logdir_ , hostname , filename ) #NEWLINE# logging . debug ( 'get FileReader from %s' , pathname ) #NEWLINE# if ( not self . filefilter_ . filter ( pathname ) ) : #NEWLINE# #INDENT# logging . debug ( '%s is filtered' , pathname ) #NEWLINE# return None #NEWLINE# #UNINDENT# return FileReader ( log_history , log_history )