#NEWLINE# def setMaxNetworks( self , num ) : #NEWLINE# #INDENT# if ( ( num > 255 ) or ( num < 0 ) ) : #NEWLINE# #INDENT# raise MessageError ( 'Could not set max networks (out of range).' ) #NEWLINE# #UNINDENT# self . payload [ 1 ] = chr ( num )