• Home
  • Raw
  • Download

Lines Matching refs:archive

97         self.archive = path
173 if pathname.startswith(self.archive + path_sep):
174 key = pathname[len(self.archive + path_sep):]
180 return _get_data(self.archive, toc_entry)
217 return _get_data(self.archive, toc_entry).decode()
253 fullpath = _bootstrap_external._path_join(self.archive, path)
352 def _read_directory(archive): argument
354 fp = _io.open_code(archive)
356 raise ZipImportError(f"can't open Zip file: {archive!r}", path=archive)
364 raise ZipImportError(f"can't read Zip file: {archive!r}", path=archive)
366 raise ZipImportError(f"can't read Zip file: {archive!r}", path=archive)
375 path=archive)
383 path=archive)
387 path=archive)
391 path=archive)
397 raise ZipImportError(f'bad central directory size: {archive!r}', path=archive)
399 raise ZipImportError(f'bad central directory offset: {archive!r}', path=archive)
403 raise ZipImportError(f'bad central directory size or offset: {archive!r}', path=archive)
411 raise ZipImportError(f"can't read Zip file: {archive!r}", path=archive)
434 raise ZipImportError(f'bad local header offset: {archive!r}', path=archive)
440 raise ZipImportError(f"can't read Zip file: {archive!r}", path=archive)
442 raise ZipImportError(f"can't read Zip file: {archive!r}", path=archive)
448 raise ZipImportError(f"can't read Zip file: {archive!r}", path=archive)
450 raise ZipImportError(f"can't read Zip file: {archive!r}", path=archive)
463 path = _bootstrap_external._path_join(archive, name)
467 _bootstrap._verbose_message('zipimport: found {} names in {!r}', count, archive)
531 def _get_data(archive, toc_entry): argument
536 with _io.open_code(archive) as fp:
541 raise ZipImportError(f"can't read Zip file: {archive!r}", path=archive)
548 raise ZipImportError(f'bad local file header: {archive!r}', path=archive)
557 raise ZipImportError(f"can't read Zip file: {archive!r}", path=archive)
693 return _get_data(self.archive, toc_entry)
702 _bootstrap._verbose_message('trying {}{}{}', self.archive, path_sep, fullpath, verbosity=2)
709 data = _get_data(self.archive, toc_entry)
772 relative_path = fullname_path.relative_to(self.zipimporter.archive)