summaryrefslogtreecommitdiffstats
path: root/module/network
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-12-23 22:28:21 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-12-23 22:28:21 +0100
commit0a836a9a7624fd7e66c181d0380f3abd50de1560 (patch)
treedadd94db9d50fa468ef01b412515e5aae848a09b /module/network
parentfixed setting download size (diff)
downloadpyload-0a836a9a7624fd7e66c181d0380f3abd50de1560.tar.xz
py2.5 fix
Diffstat (limited to 'module/network')
-rw-r--r--module/network/CookieRedirectHandler.py4
1 files changed, 2 insertions, 2 deletions
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