MCPcopy Index your code
hub / github.com/python/cpython / _init_write

Method _init_write

Lib/gzip.py:267–271  ·  view source on GitHub ↗
(self, filename)

Source from the content-addressed store, hash-verified

265 return '<gzip ' + s[1:-1] + ' ' + hex(id(self)) + '>'
266
267 def _init_write(self, filename):
268 self.name = filename
269 self.crc = zlib.crc32(b"")
270 self.size = 0
271 self.offset = 0 # Current file offset for seek(), tell(), etc
272
273 def tell(self):
274 self._check_not_closed()

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected