@log_calls<EOL><INDENT>def read_file_chunk(self, source, pos, chunk):<DEDENT>
if chunk==<NUM_LIT:0>:<EOL><INDENT>return StringIO()<EOL><DEDENT>data = None<EOL>with open(source, '<STR_LIT:rb>') as f:<EOL><INDENT>f.seek(pos)<EOL>data = f.read(chunk)<EOL><DEDENT>if not data:<EOL><INDENT>raise Failure('<STR_LIT>' % source)<EOL><DEDENT>return StringIO(data)<EOL>
Read local file chunk