This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author samwyse
Recipients samwyse
Date 2014-05-01.23:03:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1398985413.93.0.034829479965.issue21413@psf.upfronthosting.co.za>
In-reply-to
Content
In Python 2.x, this opens an NTLM protected URL:
    opener = urllib2.build_opener(proxy_handler, auth_NTLM, auth_digest, auth_basic)
    urllib2.install_opener(opener)
    response = urllib2.urlopen(url)

In Python 3.x, this raises an error:
    opener = urllib.request.build_opener(proxy_handler, auth_NTLM, auth_digest, auth_basic)
    urllib.request.install_opener(opener)
    response = urllib.request.urlopen(url)

The error is:
ValueError: AbstractDigestAuthHandler does not support the following scheme: 'NTLM'

Removing auth_digest from the list of handlers allows the code to work.
History
Date User Action Args
2014-05-01 23:03:33samwysesetrecipients: + samwyse
2014-05-01 23:03:33samwysesetmessageid: <1398985413.93.0.034829479965.issue21413@psf.upfronthosting.co.za>
2014-05-01 23:03:33samwyselinkissue21413 messages
2014-05-01 23:03:32samwysecreate