From 155c10cc91f6513bdef4a00d1ae6c4fbe16bf821 Mon Sep 17 00:00:00 2001 From: DiMartinoXBMC Date: Tue, 29 Nov 2016 21:47:37 +0300 Subject: [PATCH] rename response --- SearcherABC.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/SearcherABC.py b/SearcherABC.py index 35f1b3d..913c8d2 100644 --- a/SearcherABC.py +++ b/SearcherABC.py @@ -134,13 +134,14 @@ class SearcherABC: self.log('[makeRequest]: HTTP Error, e.code=' + str(e.code)) return #self.cookieJar.extract_cookies(response, urllib2) + #self.log(response.info().get('Set-Cookie')) if response.info().get('Content-Encoding') == 'gzip': buf = StringIO(response.read()) decomp = zlib.decompressobj(16 + zlib.MAX_WBITS) - response = decomp.decompress(buf.getvalue()) + text = decomp.decompress(buf.getvalue()) else: - response = response.read() - return response + text = response.read() + return text def askCaptcha(self, url): temp_dir = self.tempdir()