#NEWLINE# def match( self , node , results = None ) : #NEWLINE# #INDENT# 'Override match() to insist on a leaf node.' #NEWLINE# if ( not isinstance ( node , Leaf ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# return BasePattern . match ( self , node , results )