#NEWLINE# def link( self ) : #NEWLINE# #INDENT# '\n        Link substages with their input strings\n        :return:\n        ' #NEWLINE# for stage in self . stages : #NEWLINE# #INDENT# for stageName in stage . inputNames : #NEWLINE# #INDENT# stageInput = stageInput . stageDict [ stageName ] #NEWLINE# stageInput . used = True #NEWLINE# stage . addInput ( stageInput )