MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _init_write

Method _init_write

tools/python-3.11.9-amd64/Lib/gzip.py:232–238  ·  view source on GitHub ↗
(self, filename)

Source from the content-addressed store, hash-verified

230 return '<gzip ' + s[1:-1] + ' ' + hex(id(self)) + '>'
231
232 def _init_write(self, filename):
233 self.name = filename
234 self.crc = zlib.crc32(b"")
235 self.size = 0
236 self.writebuf = []
237 self.bufsize = 0
238 self.offset = 0 # Current file offset for seek(), tell(), etc
239
240 def _write_gzip_header(self, compresslevel):
241 self.fileobj.write(b'\037\213') # magic header

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected