def parse_key_value_list(kv_string_list, error_fmt, error_func):
 log.warning('parse_key_value_list() is deprecated and will be removed in v0.6.0')
 ret = {}
 for value in kv_string_list:
  try:
   (k, v) = value.split('=', 1)
   ret[k] = v
  except ValueError:
   error_func((error_fmt % (value,)))
 return ret

def parse_key_value_list ( kv_string_list , error_fmt , error_func ) : log . warning ( 'parse_key_value_list() is deprecated and will be removed in v0.6.0' ) ret = { } for value in kv_string_list : try : ( k , v ) = value . split ( '=' , 1 ) ret [ k ] = v except ValueError : error_func ( ( error_fmt % ( value , ) ) ) return ret
parse a list of strings like key=value into a dictionary .