diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-12-23 22:28:21 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-12-23 22:28:21 +0100 |
commit | 0a836a9a7624fd7e66c181d0380f3abd50de1560 (patch) | |
tree | dadd94db9d50fa468ef01b412515e5aae848a09b /module/network | |
parent | fixed setting download size (diff) | |
download | pyload-0a836a9a7624fd7e66c181d0380f3abd50de1560.tar.xz |
py2.5 fix
Diffstat (limited to 'module/network')
-rw-r--r-- | module/network/CookieRedirectHandler.py | 4 |
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 |