#NEWLINE# @ classmethod #NEWLINE# def iterate_item_dependencies( cls , item , seen = None ) : #NEWLINE# #INDENT# if ( seen is None ) : #NEWLINE# #INDENT# seen = set ( ) #NEWLINE# #UNINDENT# if ( item in seen ) : #NEWLINE# #INDENT# raise StopIteration #NEWLINE# #UNINDENT# seen . add ( item ) #NEWLINE# for dep in item . depends : #NEWLINE# #INDENT# for cdep in cls . iterate_item_dependencies ( dep , seen ) : #NEWLINE# #INDENT# ( yield cdep ) #NEWLINE# #UNINDENT# #UNINDENT# ( yield item )