#NEWLINE# def IsWellformedSubtag( self , subtag , subtag_type ) : #NEWLINE# #INDENT# if ( subtag_type in self . _wellformed_dict ) : #NEWLINE# #INDENT# subtag_regexp = ( '^%s$' % self . _wellformed_dict [ subtag_type ] ) #NEWLINE# return ( re . search ( self , subtag ) is not None ) #NEWLINE# #UNINDENT# return False