def read_chunks(stream, block_size=<NUM_LIT:2>**<NUM_LIT:10>):
while True:<EOL><INDENT>chunk = stream.read(block_size)<EOL>if not chunk:<EOL><INDENT>break<EOL><DEDENT>yield chunk<EOL><DEDENT>
Given a byte stream with reader, yield chunks of block_size
until the stream is consusmed.