From 0a836a9a7624fd7e66c181d0380f3abd50de1560 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Thu, 23 Dec 2010 22:28:21 +0100 Subject: py2.5 fix --- module/network/CookieRedirectHandler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'module/network') diff --git a/module/network/CookieRedirectHandler.py b/module/network/CookieRedirectHandler.py index 785ae7598..b7c4c953e 100644 --- a/module/network/CookieRedirectHandler.py +++ b/module/network/CookieRedirectHandler.py @@ -17,7 +17,7 @@ @author: mkaay, RaNaN """ -from urllib2 import BaseHandler +from urllib2 import BaseHandler, HTTPError from urllib import addinfourl from urllib2 import Request from urlparse import urlparse, urlunparse, urljoin @@ -131,7 +131,7 @@ class CookieRedirectHandler(BaseHandler): # with HTTPError. fp.read() fp.close() - return self.parent.open(new, timeout=req.timeout) + return self.parent.open(new) #, timeout=req.timeout) http_error_301 = http_error_303 = http_error_307 = http_error_302 -- cgit v1.2.3