code: def _extract_info(archive, info):
      
  
      if isinstance(archive, zipfile.ZipFile):
          fn = info.filename
          is_dir = fn.endswith('/') or fn.endswith('\\')
          out = archive.read(info)
          if is_dir and out == b'':
              return None
          return out
  
      info_file = archive.extractfile(info)
      if info_file:
          return info_file.read()
      return None
docs: Extracts the contents of an archive info object
  
      ;param archive:
          An archive from _open_archive()
  
      :param info:
          An info object from _list_archive_members()
  
      :return:
          None, or a byte string of the file contents