]> granicus.if.org Git - python/commit
Issue #2202: Fix UnboundLocalError in AbstractDigestAuthHandler.get_algorithm_impls
authorBerker Peksag <berker.peksag@gmail.com>
Sun, 6 Mar 2016 14:16:40 +0000 (16:16 +0200)
committerBerker Peksag <berker.peksag@gmail.com>
Sun, 6 Mar 2016 14:16:40 +0000 (16:16 +0200)
commite88dd1c32c2961e0fe40b09c48904451fa1eba9a
tree8bc1614b2ffb4bf2878b63ecca28175d84a7e86c
parent8cc859c103287089daeece91793fd2acc49baff9
Issue #2202: Fix UnboundLocalError in AbstractDigestAuthHandler.get_algorithm_impls

Raise ValueError if algorithm is not MD5 or SHA.

Initial patch by Mathieu Dupuy.
Lib/test/test_urllib2.py
Lib/urllib/request.py
Misc/NEWS