#NEWLINE# def get_bases( self , cls ) : #NEWLINE# #INDENT# for base in cls . __bases__ : #NEWLINE# #INDENT# if ( base . __name__ == 'object' ) : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# ( yield base ) #NEWLINE# if ( base . __name__ == 'Widget' ) : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# for cbase in self . get_bases ( base ) : #NEWLINE# #INDENT# ( yield cbase )