reset NoHistory() as default history class (to save memory)
This commit is contained in:
parent
ff87ba2348
commit
e77865064b
1 changed files with 2 additions and 2 deletions
|
|
@ -110,8 +110,8 @@ class Browser(mechanize.Browser):
|
||||||
|
|
||||||
# ------ Browser methods ---------------------------------------
|
# ------ Browser methods ---------------------------------------
|
||||||
|
|
||||||
def __init__(self, username=None, password=None, firefox_cookies=None, parser=StandardParser()):
|
def __init__(self, username=None, password=None, firefox_cookies=None, parser=StandardParser(), history=NoHistory()):
|
||||||
mechanize.Browser.__init__(self)#, history=NoHistory())
|
mechanize.Browser.__init__(self, history=history)
|
||||||
self.addheaders = [
|
self.addheaders = [
|
||||||
['User-agent', self.USER_AGENT]
|
['User-agent', self.USER_AGENT]
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue