MCPcopy Index your code
hub / github.com/python-openxml/python-docx / close

Method close

src/docx/opc/phys_pkg.py:111–114  ·  view source on GitHub ↗

Close the zip archive, flushing any pending physical writes and releasing any resources it's using.

(self)

Source from the content-addressed store, hash-verified

109 self._zipf = ZipFile(pkg_file, "w", compression=ZIP_DEFLATED)
110
111 def close(self):
112 """Close the zip archive, flushing any pending physical writes and releasing any
113 resources it's using."""
114 self._zipf.close()
115
116 def write(self, pack_uri, blob):
117 """Write `blob` to this zip package with the membername corresponding to

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected