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

Method decode

Lib/encodings/zlib_codec.py:49–54  ·  view source on GitHub ↗
(self, input, final=False)

Source from the content-addressed store, hash-verified

47 self.decompressobj = zlib.decompressobj()
48
49 def decode(self, input, final=False):
50 if final:
51 c = self.decompressobj.decompress(input)
52 return c + self.decompressobj.flush()
53 else:
54 return self.decompressobj.decompress(input)
55
56 def reset(self):
57 self.decompressobj = zlib.decompressobj()

Callers

nothing calls this directly

Calls 2

decompressMethod · 0.80
flushMethod · 0.45

Tested by

no test coverage detected