Edgewall Software

Changeset 974


Ignore:
Timestamp:
Mar 9, 2011, 3:48:35 PM (13 years ago)
Author:
hodgestar
Message:

Use our own HTTPBasicAuthHandler under Python 2.6 to avoid issue http://bugs.python.org/issue8797. Fixes #658.

Location:
trunk/bitten
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bitten/slave.py

    r970 r974  
    3535from bitten.recipe import Recipe
    3636from bitten.util import xmlio
     37from bitten.util.compat import HTTPBasicAuthHandler
    3738
    3839EX_OK = getattr(os, "EX_OK", 0)
     
    263264    def _get_opener(self):
    264265        opener = urllib2.build_opener(urllib2.HTTPErrorProcessor())
    265         opener.add_handler(urllib2.HTTPBasicAuthHandler(self.password_mgr))
     266        opener.add_handler(HTTPBasicAuthHandler(self.password_mgr))
    266267        opener.add_handler(urllib2.HTTPDigestAuthHandler(self.password_mgr))
    267268        opener.add_handler(urllib2.HTTPCookieProcessor(self.cookiejar))
Note: See TracChangeset for help on using the changeset viewer.