8000 [3.10] hashlib: Fix old message about unicode objects. (GH-28653) by miss-islington · Pull Request #28678 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.10] hashlib: Fix old message about unicode objects. (GH-28653) #28678

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

Merged
merged 1 commit into from
Oct 1, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
hashlib: Fix old message about unicode objects. (GH-28653)
(cherry picked from commit 9ce0f48)

Co-authored-by: Julien Palard <julien@palard.fr>
  • Loading branch information
JulienPalard authored and miss-islington committed Oct 1, 2021
commit f5462e00110ca214b700df2f135a3c1734d7dd3b
2 changes: 1 addition & 1 deletion Modules/hashlib.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#define GET_BUFFER_VIEW_OR_ERROR(obj, viewp, erraction) do { \
if (PyUnicode_Check((obj))) { \
PyErr_SetString(PyExc_TypeError, \
"Unicode-objects must be encoded before hashing");\
"Strings must be encoded before hashing");\
erraction; \
} \
if (!PyObject_CheckBuffer((obj))) { \
Expand Down
0