#NEWLINE# def validate_temperature_scale( scale ) : #NEWLINE# #INDENT# "\n    Validates the chosen temperature scale against the set 'indices'.\n    " #NEWLINE# if ( scale not in [ t [ 0 ] for t in TEMPERATURE_SCALE_CHOICES ] ) : #NEWLINE# #INDENT# raise ValidationError ( 'Invalid scale: please choose one from the list' )