#NEWLINE# def allSubclasses( cls ) : #NEWLINE# #INDENT# field_classes = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for q in cls . __subclasses__ ( ) : #NEWLINE# #INDENT# ( yield ( q . type , q ) ) #NEWLINE# for p in allSubclasses ( q ) : #NEWLINE# #INDENT# ( yield field_classes )