#NEWLINE# def decompress( self , data ) : #NEWLINE# #INDENT# if ( not data ) : #NEWLINE# #INDENT# return data #NEWLINE# #UNINDENT# if ( not self . _first_try ) : #NEWLINE# #INDENT# return self . _obj . decompress ( data ) #NEWLINE# #UNINDENT# self . _data += data #NEWLINE# try : #NEWLINE# #INDENT# return self . _obj . decompress ( data ) #NEWLINE# #UNINDENT# except zlib . error : #NEWLINE# #INDENT# self . _first_try = False #NEWLINE# self . _obj = zlib . decompressobj ( ( - zlib . MAX_WBITS ) ) #NEWLINE# try : #NEWLINE# #INDENT# return self . decompress ( self . _data ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# self . _data = None