MCPcopy
hub / github.com/cherrypy/cherrypy / decompress

Function decompress

cherrypy/lib/encoding.py:332–341  ·  view source on GitHub ↗
(body)

Source from the content-addressed store, hash-verified

330
331
332def decompress(body):
333 import gzip
334
335 zbuf = io.BytesIO()
336 zbuf.write(body)
337 zbuf.seek(0)
338 zfile = gzip.GzipFile(mode='rb', fileobj=zbuf)
339 data = zfile.read()
340 zfile.close()
341 return data
342
343
344def gzip(compress_level=5, mime_types=['text/html', 'text/plain'],

Callers

nothing calls this directly

Calls 3

writeMethod · 0.80
readMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…