Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-99502: mention bytes-like objects as input in secrets.compare_digest #99512

Merged
merged 2 commits into from Nov 26, 2022

Conversation

sobolevn
Copy link
Member

@sobolevn sobolevn commented Nov 15, 2022

Now it is in sync with https://docs.python.org/3/library/hmac.html#hmac.compare_digest
It is the same function, just re-exported. So, I guess they should mention the same input types.

Automerge-Triggered-By: GH:kumaraditya303

@sobolevn
Copy link
Member Author

sobolevn commented Nov 15, 2022

@AlexWaygood I would like to get a review on this, if you don't mind :)

@sobolevn sobolevn requested a review from AlexWaygood Nov 15, 2022
Doc/library/secrets.rst Outdated Show resolved Hide resolved
@kumaraditya303 kumaraditya303 changed the title gh-99502: mention bytes input in secrets.compare_digest gh-99502: mention bytes-like objects as input in secrets.compare_digest Nov 26, 2022
@kumaraditya303 kumaraditya303 added the 🤖 automerge PR will be merged once it's been approved and all CI passed label Nov 26, 2022
@miss-islington miss-islington merged commit 47d673d into python:main Nov 26, 2022
14 checks passed
@miss-islington
Copy link
Contributor

miss-islington commented Nov 26, 2022

Thanks @sobolevn for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10.
🐍🍒🤖

@miss-islington
Copy link
Contributor

miss-islington commented Nov 26, 2022

Thanks @sobolevn for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Nov 26, 2022
…re_digest` (pythonGH-99512)

Now it is in sync with https://docs.python.org/3/library/hmac.htmlGH-hmac.compare_digest
It is the same function, just re-exported. So, I guess they should mention the same input types.
(cherry picked from commit 47d673d)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
@bedevere-bot
Copy link

bedevere-bot commented Nov 26, 2022

GH-99790 is a backport of this pull request to the 3.10 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Nov 26, 2022
…re_digest` (pythonGH-99512)

Now it is in sync with https://docs.python.org/3/library/hmac.htmlGH-hmac.compare_digest
It is the same function, just re-exported. So, I guess they should mention the same input types.
(cherry picked from commit 47d673d)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
@bedevere-bot
Copy link

bedevere-bot commented Nov 26, 2022

GH-99791 is a backport of this pull request to the 3.11 branch.

kumaraditya303 pushed a commit that referenced this pull request Nov 26, 2022
…are_digest` (GH-99512) (#99790)

gh-99502: mention bytes-like objects as input in `secrets.compare_digest` (GH-99512)

Now it is in sync with https://docs.python.org/3/library/hmac.htmlGH-hmac.compare_digest
It is the same function, just re-exported. So, I guess they should mention the same input types.
(cherry picked from commit 47d673d)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
kumaraditya303 pushed a commit that referenced this pull request Nov 26, 2022
…are_digest` (GH-99512) (#99791)

gh-99502: mention bytes-like objects as input in `secrets.compare_digest` (GH-99512)

Now it is in sync with https://docs.python.org/3/library/hmac.htmlGH-hmac.compare_digest
It is the same function, just re-exported. So, I guess they should mention the same input types.
(cherry picked from commit 47d673d)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir 🤖 automerge PR will be merged once it's been approved and all CI passed skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants