#NEWLINE# def translate_command( self , command ) : #NEWLINE# #INDENT# ' Translate the specified command or string. ' #NEWLINE# if isinstance ( command , six . string_types ) : #NEWLINE# #INDENT# return self . replace ( command ) #NEWLINE# #UNINDENT# command = copy . copy ( command ) #NEWLINE# for i in range ( len ( command ) ) : #NEWLINE# #INDENT# command [ i ] = self . replace ( command [ i ] ) #NEWLINE# #UNINDENT# return command