def convert_kvp_str_to_list(data):
 kvp = [x.strip() for x in data.split('=', 1)]
 if ((len(kvp) == 2) and kvp[0]):
  return kvp
 msg = (_("'%s' is not of the form <key>=[value]") % data)
 raise q_exc.InvalidInput(error_message=msg)

def convert_kvp_str_to_list ( data ) : kvp = [ x . strip ( ) for x in data . split ( '=' , 1 ) ] if ( ( len ( kvp ) == 2 ) and kvp [ 0 ] ) : return kvp msg = ( _ ( "'%s' is not of the form <key>=[value]" ) % data ) raise q_exc . InvalidInput ( error_message = msg )
convert a value of the form key=value to [key .