def __read(self, size):
c = len(self.buf)<EOL>while c < size:<EOL><INDENT>buf = self.fileobj.read(self.bufsize)<EOL>if not buf:<EOL><INDENT>break<EOL><DEDENT>self.buf += buf<EOL>c += len(buf)<EOL><DEDENT>buf = self.buf[:size]<EOL>self.buf = self.buf[size:]<EOL>return buf<EOL>
Return size bytes from stream. If internal buffer is empty,
           read another block from the stream.