code: def _list_archive_members(archive):
      
  
      if isinstance(archive, zipfile.ZipFile):
          return archive.infolist()
      return archive.getmembers()
docs: :param archive:
          An archive from _open_archive()
  
      :return:
          A list of info objects to be used with _info_name() and _extract_info()