#NEWLINE# def parse_command( self , com_arg , com_string ) : #NEWLINE# #INDENT# 'Parse the values given in the command line.' #NEWLINE# try : #NEWLINE# #INDENT# return tuple ( ( int ( item . strip ( ) ) for item in com_string . split ( ':' ) ) ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# raise CommandError ( ( 'You failed to provide "%s" with one or two values of type int.\nExample: --%s=2:5' % ( com_string , com_arg ) ) )