#NEWLINE# @ classmethod #NEWLINE# def edges_from_item_deps( cls , item ) : #NEWLINE# #INDENT# 'iterates over dependency edges with transiability from item' #NEWLINE# tovisit = deque ( [ item ] ) #NEWLINE# while len ( tovisit ) : #NEWLINE# #INDENT# item = tovisit . pop ( ) #NEWLINE# for dep in item . depends : #NEWLINE# #INDENT# ( yield ( item , dep ) ) #NEWLINE# #UNINDENT# tovisit . extendleft ( item . depends )