Commit 3f469fe1 authored by Wichert Akkerman's avatar Wichert Akkerman

Merge r112803 from 2.12 branch

parent be1dc1ea
......@@ -93,15 +93,10 @@ class PublisherMechanizeBrowser(mechanize.Browser):
'_equiv', '_basicauth', '_digestauth' ]
def __init__(self, *args, **kws):
inherited_handlers = ['_unknown', '_http_error',
'_http_request_upgrade', '_http_default_error', '_basicauth',
'_digestauth', '_redirect', '_cookies', '_referer',
'_refresh', '_equiv', '_gzip']
self.handler_classes = {"http": PublisherHTTPHandler}
for name in inherited_handlers:
self.handler_classes[name] = mechanize.Browser.handler_classes[name]
self.handler_classes = mechanize.Browser.handler_classes.copy()
self.handler_classes["http"] = PublisherHTTPHandler
self.default_others = [cls for cls in self.default_others
if cls in mechanize.Browser.handler_classes]
mechanize.Browser.__init__(self, *args, **kws)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment