#NEWLINE# def netem_command( self , n = 1 ) : #NEWLINE# #INDENT# s = [ 'netem' ] #NEWLINE# for imp in self . _impairments : #NEWLINE# #INDENT# if isinstance ( imp , NumericOption ) : #NEWLINE# #INDENT# s . append ( str ( ( imp / n ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# s . append ( str ( imp ) ) #NEWLINE# #UNINDENT# #UNINDENT# return ' ' . join ( n )