#NEWLINE# def update_input_refcounts( self ) : #NEWLINE# #INDENT# 'Increment refcounts for all transforms providing inputs.' #NEWLINE# def real_producer( pv ) : #NEWLINE# #INDENT# real = pv . producer #NEWLINE# while real . parts : #NEWLINE# #INDENT# real = real . parts [ ( - 1 ) ] #NEWLINE# #UNINDENT# return real #NEWLINE# #UNINDENT# if ( not self . is_composite ( ) ) : #NEWLINE# #INDENT# for main_input in self . inputs : #NEWLINE# #INDENT# if ( not isinstance ( side_input , pvalue . PBegin ) ) : #NEWLINE# #INDENT# real_producer ( main_input ) . refcounts [ main_input . tag ] += 1 #NEWLINE# #UNINDENT# #UNINDENT# for side_input in self . side_inputs : #NEWLINE# #INDENT# real_producer ( side_input ) . refcounts [ side_input . tag ] += 1