#NEWLINE# def _get_stat( self ) : #NEWLINE# #INDENT# '\n        Get statistics from devfile in list of lists of words\n        ' #NEWLINE# def dev_filter( x ) : #NEWLINE# #INDENT# x = x . strip ( ) . split ( ' ' ) [ 0 ] [ : ( - 1 ) ] #NEWLINE# if ( x in self . interfaces_blacklist ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# if self . all_interfaces : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# if ( x in self . interfaces ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# return False #NEWLINE# #UNINDENT# x = filter ( dev_filter , open ( self . devfile ) . readlines ( ) [ 2 : ] ) #NEWLINE# try : #NEWLINE# #INDENT# return [ list ( filter ( ( lambda x : x ) , _x . split ( ' ' ) ) ) for _x in dev_filter ] #NEWLINE# #UNINDENT# except StopIteration : #NEWLINE# #INDENT# return None