code: def load(fp, object_pairs_hook=dict):
      
      return object_pairs_hook((k,v) for k,v,_ in parse(fp) if k is not None)
docs: Parse the contents of the `~io.IOBase.readline`-supporting file-like object
      ``fp`` as a simple line-oriented ``.properties`` file and return a `dict`
      of the key-value pairs.
  
      ``fp`` may be either a text or binary filehandle, with or without universal
      newlines enabled.  If it is a binary filehandle, its contents are decoded
      as Latin-1.
  
      By default, the key-value pairs extracted from ``fp`` are combined into a
      `dict` with later occurrences of a key overriding previous occurrences of
      the same key.  To change this behavior, pass a callable as the
      ``object_pairs_hook`` argument; it will be called with one argument, a
      generator of ``(key, value)`` pairs representing the key-value entries in
      ``fp`` (including duplicates) in order of occurrence.  `load` will then
      return the value returned by ``object_pairs_hook``.
  
      .. versionchanged:: 0.5.0
          Invalid ``\\uXXXX`` escape sequences will now cause an
          `InvalidUEscapeError` to be raised
  
      :param fp: the file from which to read the ``.properties`` document
      :type fp: file-like object
      :param callable object_pairs_hook: class or function for combining the
          key-value pairs
      :rtype: `dict` of text strings or the return value of ``object_pairs_hook``
      :raises InvalidUEscapeError: if an invalid ``\\uXXXX`` escape sequence
          occurs in the input