#NEWLINE# @ sudo_support #NEWLINE# def get_new_command( command ) : #NEWLINE# #INDENT# arguments = '-rf' #NEWLINE# if ( 'hdfs' in command . script ) : #NEWLINE# #INDENT# arguments = '-r' #NEWLINE# #UNINDENT# return re . sub ( '\\brm (.*)' , ( ( 'rm ' + arguments ) + ' \\1' ) , command . script )