Skip to content

Commit

Permalink
hashlib: Fix old message about unicode objects. (pythonGH-28653)
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienPalard committed Oct 1, 2021
1 parent 1dac95c commit 9ce0f48
Showing 1 changed file with 1 addition and 1 deletion.
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 comments on commit 9ce0f48

Please sign in to comment.