diff --git a/Lib/urllib2.py b/Lib/urllib2.py index 8ec5e2a..98d80f2 100644 --- a/Lib/urllib2.py +++ b/Lib/urllib2.py @@ -1070,7 +1070,8 @@ class AbstractDigestAuthHandler: H = lambda x: hashlib.md5(x).hexdigest() elif algorithm == 'SHA': H = lambda x: hashlib.sha1(x).hexdigest() - # XXX MD5-sess + else: # XXX MD5-sess + raise NotImplementedError("Unsupported Digest Authentication Algorithm %r" % algorithm) KD = lambda s, d: H("%s:%s" % (s, d)) return H, KD