Skip to content

Commit 8822526

Browse files
[3.9] hashlib: Fix old message about unicode objects. (GH-28653) (GH-28679)
(cherry picked from commit 9ce0f48) Co-authored-by: Julien Palard <julien@palard.fr>
1 parent 4d5d161 commit 8822526

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/hashlib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#define GET_BUFFER_VIEW_OR_ERROR(obj, viewp, erraction) do { \
99
if (PyUnicode_Check((obj))) { \
1010
PyErr_SetString(PyExc_TypeError, \
11-
"Unicode-objects must be encoded before hashing");\
11+
"Strings must be encoded before hashing");\
1212
erraction; \
1313
} \
1414
if (!PyObject_CheckBuffer((obj))) { \

0 commit comments

Comments
 (0)