]> 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:27:23 +0000 (16:27 +0200)
committerBerker Peksag <berker.peksag@gmail.com>
Sun, 6 Mar 2016 14:27:23 +0000 (16:27 +0200)
commit87640b30cef32377be844a16129fcb449ccaec29
treedac677140e67a7d6daa44f4276f96018def83985
parent9e00088cc5424c1f259f07656206c90f346c41bb
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/urllib2.py
Misc/NEWS