#NEWLINE# def substitutesForQname( self , subsQname ) : #NEWLINE# #INDENT# '(bool) -- True if element substitutes for specified qname' #NEWLINE# subs = self #NEWLINE# subNext = subs . substitutionGroup #NEWLINE# while ( subNext is not None ) : #NEWLINE# #INDENT# if ( subsQname == subs . substitutionGroupQname ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# subs = subNext #NEWLINE# subNext = subs . substitutionGroup #NEWLINE# #UNINDENT# return False