On Mon, 7 Jan 2008 20:17:45 +0000 (GMT), "John J Lee" <[EMAIL PROTECTED]> said: > On Tue, 8 Jan 2008, Robert Leftwich wrote: > [...] > > class PatchedMechanizeBrowser(MechanizeBrowser): > > """ > > A patched version of the mechanize browser class. Currently > > installs the WSGI intercept handler & fixes a problem with > > mechanize/urllib2 Basic Authentication. > > """ > > def __init__(self, *args, **kwargs): > > # install WSGI intercept handler. > > self.handler_classes['http'] = build_http_handler() > > self.handler_classes['https'] = build_http_handler() > [...] > > You're mutating a class attribute here -- not a good idea.
True, but I just added the https line(s) based on the existing code. ...says me, passing the buck :-)) Robert _______________________________________________ twill mailing list [email protected] http://lists.idyll.org/listinfo/twill
