#NEWLINE# @ classmethod #NEWLINE# def parse_type( cls , levelname ) : #NEWLINE# #INDENT# level = cls . parse ( levelname , Unknown ) #NEWLINE# if ( level is Unknown ) : #NEWLINE# #INDENT# message = ( '%s is unknown, use: %s' % ( levelname , ', ' . join ( cls . names [ 1 : ] ) ) ) #NEWLINE# raise argparse . ArgumentTypeError ( message ) #NEWLINE# #UNINDENT# return level