def load_streams(chunks):
chunks = peekable(chunks)<EOL>while chunks:<EOL><INDENT>if six.PY3:<EOL><INDENT>dc = zlib.decompressobj(wbits=zlib.MAX_WBITS | <NUM_LIT:16>)<EOL><DEDENT>else:<EOL><INDENT>dc = zlib.decompressobj(zlib.MAX_WBITS | <NUM_LIT:16>)<EOL><DEDENT>yield load_stream(dc, chunks)<EOL>if dc.unused_data:<EOL><INDENT>chunks = peekable(itertools.chain((dc.unused_data,), chunks))<EOL><DEDENT><DEDENT>
Given a gzipped stream of data, yield streams of decompressed data.