Skip to content

Modernize security module, remove _find_hashlib_algorithms.#1282

Merged
lepture merged 3 commits into
masterfrom
patch-security
Apr 21, 2018
Merged

Modernize security module, remove _find_hashlib_algorithms.#1282
lepture merged 3 commits into
masterfrom
patch-security

Conversation

@lepture

@lepture lepture commented Apr 21, 2018

Copy link
Copy Markdown
Contributor

Cleanup the code via #1226 (comment)

Here is a breaking change _hash_internal, it once raised TypeError when hash func was invalid. However, the default behavior of hashlib.new or hmac.HMAC is raising ValueError. You can find the breaking change in test case.

Comment thread werkzeug/security.py Outdated
@davidism

Copy link
Copy Markdown
Member

Nice to remove all that code. 👍 Remember to add a changelog entry.

@lepture lepture merged commit 0751573 into master Apr 21, 2018
@lepture lepture deleted the patch-security branch April 21, 2018 05:53
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Nov 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants