#NEWLINE# def _unpatch_pipeline_line( orig_line , storlet_middleware ) : #NEWLINE# #INDENT# mds = list ( ) #NEWLINE# for md in orig_line . split ( ) : #NEWLINE# #INDENT# if ( ( md == 'pipeline' ) or ( md == '=' ) ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# mds . append ( md ) #NEWLINE# #UNINDENT# if ( storlet_middleware in mds ) : #NEWLINE# #INDENT# mds . remove ( storlet_middleware ) #NEWLINE# #UNINDENT# new_line = 'pipeline =' #NEWLINE# for md in mds : #NEWLINE# #INDENT# new_line += ( ' ' + md ) #NEWLINE# #UNINDENT# return ( new_line + '\n' )