def _init_read_gz(self):
self.cmp = self.zlib.decompressobj(-self.zlib.MAX_WBITS)<EOL>self.dbuf = b"<STR_LIT>"<EOL>if self.__read(<NUM_LIT:2>) != b"<STR_LIT>":<EOL><INDENT>raise ReadError("<STR_LIT>")<EOL><DEDENT>if self.__read(<NUM_LIT:1>) != b"<STR_LIT>":<EOL><INDENT>raise CompressionError("<STR_LIT>")<EOL><DEDENT>flag = ord(self.__read(<NUM_LIT:1>))<EOL>self.__read(<NUM_LIT:6>)<EOL>if flag & <NUM_LIT:4>:<EOL><INDENT>xlen = ord(self.__read(<NUM_LIT:1>)) + <NUM_LIT> * ord(self.__read(<NUM_LIT:1>))<EOL>self.read(xlen)<EOL><DEDENT>if flag & <NUM_LIT:8>:<EOL><INDENT>while True:<EOL><INDENT>s = self.__read(<NUM_LIT:1>)<EOL>if not s or s == NUL:<EOL><INDENT>break<EOL><DEDENT><DEDENT><DEDENT>if flag & <NUM_LIT:16>:<EOL><INDENT>while True:<EOL><INDENT>s = self.__read(<NUM_LIT:1>)<EOL>if not s or s == NUL:<EOL><INDENT>break<EOL><DEDENT><DEDENT><DEDENT>if flag & <NUM_LIT:2>:<EOL><INDENT>self.__read(<NUM_LIT:2>)<EOL><DEDENT>
Initialize for reading a gzip compressed fileobj.