(
filename, # type: str
arcname, # type: str
)
| 877 | ) as zf: |
| 878 | |
| 879 | def write_entry( |
| 880 | filename, # type: str |
| 881 | arcname, # type: str |
| 882 | ): |
| 883 | # type: (...) -> None |
| 884 | zf.write_deterministic( |
| 885 | filename=filename, |
| 886 | arcname=os.path.relpath(arcname, strip_prefix) if strip_prefix else arcname, |
| 887 | deterministic=deterministic, |
| 888 | compress=compress and self._compress_by_file.get(arcname, True), |
| 889 | ) |
| 890 | |
| 891 | def get_parent_dir(path): |
| 892 | # type: (str) -> Optional[str] |
nothing calls this directly
no test coverage detected