#NEWLINE# def message( self , invalid_keyword , allowed_keywords , group_name , path ) : #NEWLINE# #INDENT# msg = ( 'Invalid option %s, valid options are: %s' % ( repr ( invalid_keyword ) , str ( allowed_keywords ) ) ) #NEWLINE# if ( path and invalid_keyword ) : #NEWLINE# #INDENT# msg = ( ( 'Invalid key for group %r on path %r;\n' % ( group_name , path ) ) + msg ) #NEWLINE# #UNINDENT# return msg