← Về thư mục
scripts/verify_windows_zip.py
- _Package · class · L120-L129 — class _Package
- init · method · L123-L126 — def init(self, name: str, entries: dict[str, int])
- read · method · L128-L129 — def read(self, relative: str) -> bytes: # pragma: no cover - overridden
- _ZipPackage · class · L132-L164 — class _ZipPackage(_Package)
- init · method · L133-L161 — def init(self, archive: zipfile.ZipFile)
- read · method · L163-L164 — def read(self, relative: str) -> bytes
- _DirPackage · class · L167-L180 — class _DirPackage(_Package)
- init · method · L168-L177 — def init(self, root: Path)
- read · method · L179-L180 — def read(self, relative: str) -> bytes
- _open · function · L183-L188 — def _open(target: Path) -> _Package
- _check_shape · function · L191-L201 — def _check_shape(package: _Package) -> tuple[str, str]
- _check_no_native_windows_path · function · L204-L237 — def _check_no_native_windows_path(package: _Package) -> None
- _check_wsl_runtime_contract · function · L240-L282 — def _check_wsl_runtime_contract(package: _Package) -> None
- _check_ascii · function · L285-L307 — def _check_ascii(package: _Package) -> None
- _check_line_endings · function · L310-L329 — def _check_line_endings(package: _Package) -> None
- _payload_names · function · L332-L346 — def _payload_names(package: _Package) -> tuple[str, str]
- _check_payload · function · L349-L379 — def _check_payload(package: _Package, version: str, arch: str) -> tuple[str, str]
- _check_no_secrets · function · L382-L396 — def _check_no_secrets(package: _Package) -> None
- verify · function · L399-L423 — def verify(target: Path) -> None
- main · function · L426-L444 — def main(argv: list[str] | None = None) -> int