#NEWLINE# def _assert_symbol_appears_multiple_times( self , symbol , symbols_so_far ) : #NEWLINE# #INDENT# if ( symbol in symbols_so_far ) : #NEWLINE# #INDENT# raise ValueError ( 'Symbol {} appears more than once.' . format ( symbol ) )