code: def load(stream, container=dict):
      
      ret = container()
  
      for line in stream.readlines():
          line = line.rstrip()
          if line is None or not line:
              continue
  
          (key, val) = _parseline(line)
          if key is None:
              LOGGER.warning("Empty val in the line: %s", line)
              continue
  
          ret[key] = val
  
      return ret
docs: Load and parse a file or file-like object 'stream' provides simple shell
      variables' definitions.
  
      :param stream: A file or file like object
      :param container:
          Factory function to create a dict-like object to store properties
      :return: Dict-like object holding shell variables' definitions
  
      >>> from anyconfig.compat import StringIO as to_strm
      >>> load(to_strm(''))
      {}
      >>> load(to_strm("# "))
      {}
      >>> load(to_strm("aaa="))
      {'aaa': ''}
      >>> load(to_strm("aaa=bbb"))
      {'aaa': 'bbb'}
      >>> load(to_strm("aaa=bbb # ..."))
      {'aaa': 'bbb'}