#NEWLINE# def _fixup_alt_context( self , ctx , node_state , alt_ctx ) : #NEWLINE# #INDENT# callee_ctx = cython . declare ( MDFContext ) #NEWLINE# alt_state = cython . declare ( NodeState ) #NEWLINE# alt_state = self . _get_state ( alt_ctx ) #NEWLINE# for ( ctx_id , callees ) in node_state . callees . iteritems ( ) : #NEWLINE# #INDENT# callee_ctx = _get_context ( ctx_id ) #NEWLINE# for callee in callees : #NEWLINE# #INDENT# self . add_dependency ( alt_ctx , ctx , callee_ctx ) #NEWLINE# #UNINDENT# #UNINDENT# node_state . callees . clear ( ) #NEWLINE# self . _clear_dependency_cache ( ctx ) #NEWLINE# alt_state . generator = node_state . generator #NEWLINE# node_state . generator = None #NEWLINE# node_state . called = False #NEWLINE# alt_state . called = True