#NEWLINE# def get_new_command( command ) : #NEWLINE# #INDENT# script = shlex . split ( command . script ) #NEWLINE# for ( i , e ) in enumerate ( script ) : #NEWLINE# #INDENT# if ( e . startswith ( ( 's/' , '-es/' ) ) and ( e [ ( - 1 ) ] != '/' ) ) : #NEWLINE# #INDENT# script [ i ] += '/' #NEWLINE# #UNINDENT# #UNINDENT# return ' ' . join ( map ( shell . quote , script ) )