• Home
  • Raw
  • Download

Lines Matching refs:archive

98         self.archive = path
210 if pathname.startswith(self.archive + path_sep):
211 key = pathname[len(self.archive + path_sep):]
217 return _get_data(self.archive, toc_entry)
255 return _get_data(self.archive, toc_entry).decode()
296 fullpath = _bootstrap_external._path_join(self.archive, path)
333 self._files = _read_directory(self.archive)
334 _zip_directory_cache[self.archive] = self._files
336 _zip_directory_cache.pop(self.archive, None)
402 def _read_directory(archive): argument
404 fp = _io.open_code(archive)
406 raise ZipImportError(f"can't open Zip file: {archive!r}", path=archive)
414 raise ZipImportError(f"can't read Zip file: {archive!r}", path=archive)
416 raise ZipImportError(f"can't read Zip file: {archive!r}", path=archive)
425 path=archive)
433 path=archive)
437 path=archive)
441 path=archive)
447 raise ZipImportError(f'bad central directory size: {archive!r}', path=archive)
449 raise ZipImportError(f'bad central directory offset: {archive!r}', path=archive)
453 raise ZipImportError(f'bad central directory size or offset: {archive!r}', path=archive)
461 raise ZipImportError(f"can't read Zip file: {archive!r}", path=archive)
484 raise ZipImportError(f'bad local header offset: {archive!r}', path=archive)
490 raise ZipImportError(f"can't read Zip file: {archive!r}", path=archive)
492 raise ZipImportError(f"can't read Zip file: {archive!r}", path=archive)
498 raise ZipImportError(f"can't read Zip file: {archive!r}", path=archive)
500 raise ZipImportError(f"can't read Zip file: {archive!r}", path=archive)
513 path = _bootstrap_external._path_join(archive, name)
517 _bootstrap._verbose_message('zipimport: found {} names in {!r}', count, archive)
581 def _get_data(archive, toc_entry): argument
586 with _io.open_code(archive) as fp:
591 raise ZipImportError(f"can't read Zip file: {archive!r}", path=archive)
598 raise ZipImportError(f'bad local file header: {archive!r}', path=archive)
607 raise ZipImportError(f"can't read Zip file: {archive!r}", path=archive)
735 return _get_data(self.archive, toc_entry)
745 _bootstrap._verbose_message('trying {}{}{}', self.archive, path_sep, fullpath, verbosity=2)
752 data = _get_data(self.archive, toc_entry)