def seek(self, pos=<NUM_LIT:0>):
if pos - self.pos >= <NUM_LIT:0>:<EOL><INDENT>blocks, remainder = divmod(pos - self.pos, self.bufsize)<EOL>for i in range(blocks):<EOL><INDENT>self.read(self.bufsize)<EOL><DEDENT>self.read(remainder)<EOL><DEDENT>else:<EOL><INDENT>raise StreamError("<STR_LIT>")<EOL><DEDENT>return self.pos<EOL>
Set the stream's file pointer to pos. Negative seeking
           is forbidden.