(command)
return command
Cleans a command.
Cleans a command.
Cleans a command .
def clean_command(command):
    # type: (str) -> str
    '''Cleans a command.'''
    command = command.lower()
    # Force to str
    command = command.encode('utf-8')
    # Remove punctuation people are likely to use and won't interfere with command names
    command = command.translate(string.maketrans('', ''), PUNCTUATION)
    return command
def clean_command ( command ) : # type: (str) -> str command = command . lower ( ) # Force to str command = command . encode ( 'utf-8' ) # Remove punctuation people are likely to use and won't interfere with command names command = command . translate ( string . maketrans ( '' , '' ) , PUNCTUATION ) return command