#NEWLINE# def ClassValue( data ) : #NEWLINE# #INDENT# _str_bad_class = 'you tried to filter a flow using an invalid traffic class for a component ..' #NEWLINE# number = int ( data ) #NEWLINE# if ( ( number < 0 ) or ( number > 65535 ) ) : #NEWLINE# #INDENT# raise ValueError ( _str_bad_class ) #NEWLINE# #UNINDENT# return number