summaryrefslogtreecommitdiffstats
path: root/module/network/Browser.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-12-22 14:25:56 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-12-22 14:25:56 +0100
commit052d09687627999b91b45a8c0224aa9de4769924 (patch)
tree0ed3dd7cc49cd43fd2ce4c1b1573a13265daefb6 /module/network/Browser.py
parentrefactoring part 1: deprecation warnings, reduced debug, cookie compatibility (diff)
downloadpyload-052d09687627999b91b45a8c0224aa9de4769924.tar.xz
cleaned request factory
Diffstat (limited to 'module/network/Browser.py')
-rw-r--r--module/network/Browser.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/network/Browser.py b/module/network/Browser.py
index df0f24b4d..3d2d5a73f 100644
--- a/module/network/Browser.py
+++ b/module/network/Browser.py
@@ -2,9 +2,9 @@ from random import randint
from helper import *
from os.path import join
from logging import getLogger
-from cookielib import CookieJar
import zlib
+from CookieJar import CookieJar
from HTTPBase import HTTPBase
from HTTPDownload import HTTPDownload
from FTPBase import FTPDownload
@@ -13,7 +13,7 @@ from XDCCBase import XDCCDownload
from traceback import print_stack
class Browser(object):
- def __init__(self, interface=None, cookieJar=CookieJar(), bucket=None, proxies={}):
+ def __init__(self, interface=None, cookieJar=None, bucket=None, proxies={}):
self.log = getLogger("log")
self.lastURL = None
@@ -21,7 +21,7 @@ class Browser(object):
self.bucket = bucket
self.http = HTTPBase(interface=interface, proxies=proxies)
- self.setCookieJar(cookieJar)
+ self.setCookieJar(cookieJar if cookieJar else CookieJar())
self.proxies = proxies
def setCookieJar(self, cookieJar):