From a37ea209569227e2ca4a468557c77bc530be548d Mon Sep 17 00:00:00 2001 From: Rnhmjoj Date: Wed, 3 Dec 2014 20:21:46 +0100 Subject: [PATCH] Fix name clash Forgot about this one --- pirate-get.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pirate-get.py b/pirate-get.py index c0986b8..f04d5a1 100755 --- a/pirate-get.py +++ b/pirate-get.py @@ -438,9 +438,9 @@ def main(): for link in chosen_links: path = '/ajax_details_filelist.php' query = '?id=' + identifiers[int(link)] - request = request.Request(mirror + path + query) - request.add_header('Accept-encoding', 'gzip') - f = request.urlopen(request) + req = request.Request(mirror + path + query) + req.add_header('Accept-encoding', 'gzip') + f = request.urlopen(req) if f.info().get('Content-Encoding') == 'gzip': f = gzip.GzipFile(fileobj=BytesIO(f.read()))