reset NoHistory() as default history class (to save memory)

This commit is contained in:
Romain Bignon 2010-04-14 11:32:37 +02:00
commit e77865064b

View file

@ -110,8 +110,8 @@ class Browser(mechanize.Browser):
# ------ Browser methods ---------------------------------------
def __init__(self, username=None, password=None, firefox_cookies=None, parser=StandardParser()):
mechanize.Browser.__init__(self)#, history=NoHistory())
def __init__(self, username=None, password=None, firefox_cookies=None, parser=StandardParser(), history=NoHistory()):
mechanize.Browser.__init__(self, history=history)
self.addheaders = [
['User-agent', self.USER_AGENT]
]