#NEWLINE# def _check_constants( self , constants ) : #NEWLINE# #INDENT# symbols = self . constants_symbols #NEWLINE# for k in constants . keys ( ) : #NEWLINE# #INDENT# if ( k not in symbols ) : #NEWLINE# #INDENT# raise ValueError ( 'Symbol {} is not a constant.' . format ( k ) )