We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aea1b4e commit 5c21402Copy full SHA for 5c21402
Lib/urllib/request.py
@@ -1182,9 +1182,9 @@ def get_algorithm_impls(self, algorithm):
1182
H = lambda x: hashlib.md5(x.encode("ascii")).hexdigest()
1183
elif algorithm == 'SHA':
1184
H = lambda x: hashlib.sha1(x.encode("ascii")).hexdigest()
1185
- # XXX MD5-sess
1186
elif algorithm == 'SHA-256':
1187
H = lambda x: hashlib.sha256(x.encode("ascii")).hexdigest()
+ # XXX MD5-sess
1188
else:
1189
raise ValueError("Unsupported digest authentication "
1190
"algorithm %r" % algorithm)
0 commit comments