Author mark.dickinson
Recipients mark.dickinson, mhuewe, orsenthil
Date 2010-11-30.09:17:17
SpamBayes Score 0.00544761
Marked as misclassified No
Message-id <1291108642.44.0.661659407529.issue9639@psf.upfronthosting.co.za>
In-reply-to
Content
Ah well, it turned out to be fairly easy to work around, at least. :-)

Just in case any other urllib2 users have to deal with this in 2.6.6 (and also manage to find their way to this bug report :-):  it's easy to monkeypatch your way around the problem.  E.g.:

import sys
import urllib2

if sys.version_info[:2] == (2, 6) and sys.version_info[2] >= 6:
    def fixed_http_error_401(self, req, fp, code, msg, headers):
        url = req.get_full_url()
        response = self.http_error_auth_reqed('www-authenticate',
                                          url, req, headers)
        self.retried = 0
        return response

    urllib2.HTTPBasicAuthHandler.http_error_401 = fixed_http_error_401
History
Date User Action Args
2010-11-30 09:17:22mark.dickinsonsetrecipients: + mark.dickinson, orsenthil, mhuewe
2010-11-30 09:17:22mark.dickinsonsetmessageid: <1291108642.44.0.661659407529.issue9639@psf.upfronthosting.co.za>
2010-11-30 09:17:17mark.dickinsonlinkissue9639 messages
2010-11-30 09:17:17mark.dickinsoncreate