#NEWLINE# def isSymbol( self , symbol = None ) : #NEWLINE# #INDENT# if ( 'symbol' == self . type ) : #NEWLINE# #INDENT# if symbol : #NEWLINE# #INDENT# if isinstance ( symbol , basestring ) : #NEWLINE# #INDENT# return ( symbol == self . text ) #NEWLINE# #UNINDENT# return ( symbol . text in symbol ) #NEWLINE# #UNINDENT# return True #NEWLINE# #UNINDENT# return False