remove the 'refresh' feature from Browser

This commit is contained in:
Romain Bignon 2011-03-06 09:58:38 +01:00
commit 4a7a90cb46

View file

@ -162,6 +162,7 @@ class BaseBrowser(mechanize.Browser):
# I'm not a robot, so disable the check of permissions in robots.txt.
default_features = copy(mechanize.Browser.default_features)
default_features.remove('_robots')
default_features.remove('_refresh')
def __init__(self, username=None, password=None, firefox_cookies=None,
parser=None, history=NoHistory(), proxy=None, logger=None):