8000 hashlib: Fix old message about unicode objects. (GH-28653) · python/cpython@b994fee · GitHub
[go: up one dir, main page]

Skip to content

Commit b994fee

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

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)
0