code: def pairs_to_dict(pairs, result=None):
      
      dictionary = {}
      for pair in pairs:
          if len(pair) > 0:
              tokens = pair.split(gc.CONFIG_STRING_ASSIGNMENT_SYMBOL)
              if ((len(tokens) == 2) and
                      (len(tokens[0])) > 0 and
                      (len(tokens[1]) > 0)):
                  dictionary[tokens[0]] = tokens[1]
              elif result is not None:
                  result.add_warning("Invalid key=value string: '%s'" % pair)
      return dictionary
docs: Convert a given list of ``key=value`` strings ::
  
          ["key_1=value_1", "key_2=value_2", ..., "key_n=value_n"]
  
      into the corresponding dictionary ::
  
          dictionary[key_1] = value_1
          dictionary[key_2] = value_2
          ...
          dictionary[key_n] = value_n
  
      :param list pairs: the list of key=value strings
      :rtype: dict